T = True
print(type(T))
F = False
print(type(F))
# Less than
2 < 6
# Greater than
2 > 9
# Equality operator
1 == 7
6 == 2*3
# Not equal
6 != 10 - 3
a = 17
b = 17.0
print(type(a))
print(type(b))
a == b
str7 = "7"
int7 = 7
print(type(str7))
print(type(int7))
str7 == int7
"Blah" == "blah"
"blah" == "blah"
When used in a numerical calculation, boolean values are interpreted as numbers in the following way:
False + True
False * True
True * 2
False * 5