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

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


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?
-------------- 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/0053439c/attachment.sig>


More information about the Tutor mailing list