Skip to main content

Chapter 47 Quiz

Before taking the quiz, verify that you can do each of these without looking at the lessons:

  • Name the four primitive types: Write a typed variable declaration for each of int, float, str, and bool
  • Predict division results: Explain why 10 / 2 returns 5.0 (not 5) and what 10 // 3 returns
  • Write boolean expressions: Combine comparisons with and, or, and not for a real condition
  • Distinguish None from other falsy values: Explain why None, 0, "", and False are all falsy but not the same thing
  • Predict type conversions: Know which conversions succeed and which raise ValueError

If any feel uncertain, revisit the specific lesson before continuing.

Test your understanding of Python's primitive types, arithmetic, comparisons, and type conversions by solving real-world scenarios.

Checking access...