dimanche 24 juillet 2016

I just laid my hands on Richard Halterman, 2011 Python edition for a beginner like me.

I just laid my hands on Richard Halterman, 2011 Python edition for a beginner like me. I am a little bit taken aback with the if/else condition. I keep getting the syntax error whenever type 'else' followed by a colon before the condition. I type 'else' without the colon and still get syntax error.

else: print('different')

SyntaxError: invalid syntax

else SyntaxError: invalid syntax

Aucun commentaire:

Enregistrer un commentaire