Python quiz: 120 questions

120 questions from the 40 lessons of Python Programming. Each answer is explained, with a link back to the lesson it comes from, and your best score stays on this device.

Test yourself

120 questions from this course's lessons, in a random order. See what you remember, then go back to the lessons behind the questions you missed.

How many questions?

What the quiz covers

  1. Your first program (3 questions)
  2. Variables and assignment (3 questions)
  3. Numbers and operators (3 questions)
  4. Input and type conversion (3 questions)
  5. Formatting output (3 questions)
  6. Decisions with if (3 questions)
  7. Repeating with for loops (3 questions)
  8. Repeating with while (3 questions)
  9. Nested loops (3 questions)
  10. Working with strings (3 questions)
  11. Lists (3 questions)
  12. enumerate and zip (3 questions)
  13. Lists of lists (3 questions)
  14. Functions and recursion (3 questions)
  15. More about functions (3 questions)
  16. Functions as values (3 questions)
  17. Using modules (3 questions)
  18. Tuples and sets (3 questions)
  19. Dictionaries (3 questions)
  20. List comprehensions (3 questions)
  21. Processing text data (3 questions)
  22. Generators (3 questions)
  23. Errors and exceptions (3 questions)
  24. Raising your own errors (3 questions)
  25. Testing your code (3 questions)
  26. Debugging (3 questions)
  27. Classes and objects (3 questions)
  28. Inheritance (3 questions)
  29. Special methods (3 questions)
  30. Recursion in practice (3 questions)
  31. Memoization (3 questions)
  32. Stacks and queues (3 questions)
  33. Linked lists (3 questions)
  34. Binary trees (3 questions)
  35. How fast is your code? (3 questions)
  36. Sorting algorithms (3 questions)
  37. Two pointers and sliding windows (3 questions)
  38. Project: a grade book (3 questions)
  39. Project: a shop inventory (3 questions)
  40. What comes next (3 questions)