Programming in Python
0 of 222 complete

Section 3: Conditional execution · Notes

Section notes

  • if, elif and else choose a path depending on whether a condition is true.
  • Comparison operators: == != < > <= >=.
  • Indentation is part of Python's syntax: it marks the blocks.
  • try and except catch expected errors instead of letting the program stop.

Your progress is saved in this browser. Accounts are coming so it follows you across devices.