What is the rule of the command that Python requires :
After If, After While, After Else,
I understand it somehow, but I don't feel refreshed.
If a colon is required at the end of a line, a compound statement (control statement) is applicable.
http://docs.python.jp/3/reference/compound_stmts.html
Indent from the next line to indicate that a block begins.
Here you go too:
http://docs.python.jp/3/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements
© 2024 OneMinuteCode. All rights reserved.