Part 1 · Section 02

A Quick Refresher

Before going deep, it helps to make sure everyone shares the same foundation. This section is a brisk review of everyday Python. If you already write Python regularly, most of it will feel familiar, but keep an eye out for the details that are easy to get wrong: where a comment may break a statement, why finally still runs after a break, what the else clause on a loop really means, and how Python decides what str(obj), obj == other or obj < other should do for your own classes.

Every example runs in your browser, so change the values and re-run the cells to test your understanding.

In this section you’ll learn:

Lectures

  1. 01The Python Type Hierarchy✓
  2. 02Multi-Line Statements and Strings✓
  3. 03Variable Names✓
  4. 04Conditionals✓
  5. 05Functions✓
  6. 06The While Loop✓
  7. 07Break, Continue and the Try Statement✓
  8. 08The For Loop✓
  9. 09Classes✓
  10. 10Strings✓
  11. 11Lists✓
  12. 12Tuples✓
  13. 13Sets✓
  14. 14Dictionaries✓

Practice: quiz & exercises

23 quiz questions · 5 coding exercises

Go to practice →