[Tutor] Error :SyntaxError: 'break' outside loop

Chris Down chris at chrisdown.name
Mon Aug 19 10:55:55 CEST 2013


On 2013-08-19 10:55, Chris Down wrote:
> On 2013-08-18 10:18, Zoya Tavakkoli wrote:
> > if k == 27:
> >
> >  break
>
> Well, you're not in a function here, so break doesn't make any sense. What is
> it that you want to do?

s/function/loop/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20130819/9541e742/attachment.sig>


More information about the Tutor mailing list