Complete the code to assign the Boolean value True to the variable.
is_active = [1]The Boolean value True in Python must be capitalized exactly as shown. Lowercase or strings are not Boolean values.
Complete the code to check if the variable is False.
if is_ready == [1]: print("Not ready")
In Python, the Boolean value False must be capitalized exactly. Using lowercase or strings will not work as expected.
Fix the error in the code to correctly assign a Boolean value.
is_valid = [1]The correct Boolean value is True with a capital T. Lowercase or strings are incorrect.
Fill both blanks to create a Boolean expression that checks if x is True and y is False.
if x == [1] and y == [2]: print("Condition met")
Boolean values must be capitalized: True and False.
Fill all three blanks to create a dictionary with Boolean values as keys and strings as values.
status = [1]: "On", [2]: "Off", [3]: "Unknown"}
The dictionary starts with a curly brace {. Keys are Boolean values True and False, and None is used for unknown.