[Tutor] try except continue
dyoo at hkn.eecs.berkeley.edu
Thu Jul 28 19:51:58 CEST 2005
On Thu, 28 Jul 2005 tpc at csua.berkeley.edu wrote:
> import testTryCatch
> print "encountered error"
> but I get the following error:
> SyntaxError: 'continue' not properly in loop
> What am I doing wrong ?
What did you expect to happen when we hit the continue statement? It'll
help to know what you wanted to happen, so that we can better understand
'continue' is only effective if we're in a loop, so the error message is
perfectly true. So I think we need to know more about what you are trying
Best of wishes!
More information about the Tutor