Learning Python: Chapter 10

  • elsif is called elif.
  • Parens around boolean tests are optional.
  • A semicolon can be put at the end of any statement to make it look like C.
  • Parts of statements enclosed in parens, curlies or brackets may span over multiple lines.
    Since parens may be wrapped around each expression, virtually anything can be spread over multiple lines.

Leave a Reply