Error invalid syntax while statement

Terry Reedy tjreedy at udel.edu
Sat Jan 8 06:04:08 EST 2011


> 15 print("counter: ", counter
> 16
> 17 while (end == 0): #
> <-------------------returns syntax error on this while statement

Among other responses, there is no indent after print.
should be
 print()
 while x:
 #now indent
-- 
Terry Jan Reedy


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /