points > 10 ?
🚧
Gate closed
print(n > 10)
True
n > 10 is a yes/no question. Python answers with the boolean True or False — like a light switch, not the words "yes" and "no".
bool is True or False. type() tells you what kind of box you have.
A boolean is a yes/no value in code: True or False. Comparisons like n > 10 return a boolean.
Used in login checks, access control, validation rules, feature toggles, and every decision-making condition in apps.
If loyalty points > 10, the gate opens (True). Otherwise you wait in the normal line (False). Change points below and watch the gate.
n, print n > 10.True, 4 → False, 10 → False (not greater, only equal).