Master Python boolean variables with hands‑on exercises! Learn how to use True and False, explore type() and id(), and test your understanding with self‑grading practice questions.
✅ True – Python treats uppercase and lowercase letters as distinct (e.g., `myVar` and `myvar` are different variables).
❌ False – Python uses dynamic typing - variables are created when first assigned a value, without explicit type declaration.
✅ True – In Python, assignment to a new variable name automatically creates that variable.
❌ False – Variable names must start with a letter (a-z, A-Z) or underscore (_).
✅ True – Python allows chained assignments in a single line.
❌ False – Python's garbage collector automatically handles memory management.
❌ False – `None` is a distinct object representing 'no value', while `False` is a boolean.
❌ False – Python is dynamically typed - variable types are checked at runtime.
✅ True – Dynamic typing allows variables to change types during execution.
✅ True – `type(x)` shows the type of object `x` currently references.
✅ True – Python functions implicitly return `None` if no return statement exists.
❌ False – `x = None` creates a variable bound to the `None` object, while an undefined variable raises a `NameError`.
❌ False – Assignment creates a new reference to the same object (aliasing), not a copy.
❌ False – `None` is a singleton object that does occupy memory (like any Python object).
✅ True – `None` is hashable and can be used as a key, unlike mutable objects.