Error invalid syntax while statement
Terry Reedy
tjreedy at udel.edu
Sat Jan 8 06:04:08 EST 2011
More information about the Python-list mailing list
Sat Jan 8 06:04:08 EST 2011
- Previous message (by thread): Error invalid syntax while statement
- Next message (by thread): [ANN] pyxser-1.5.2r --- Python Object to XML serializer/deserializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message (by thread): Error invalid syntax while statement
- Next message (by thread): [ANN] pyxser-1.5.2r --- Python Object to XML serializer/deserializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list