xxxxxxxxxx
# Boolean variables in python just start with a capital letter
True
False
xxxxxxxxxx
# Example 1: Boolean data type
x = True
y = False
print(x) # Output: True
print(y) # Output: False
# Example 2: Conditional statements
num = 10
if num > 5:
print("The number is greater than 5.")
else:
print("The number is not greater than 5.")
# Output: The number is greater than 5.