# bool is the simplest type in Python
# It can only be True or False — nothing else

is_logged_in = True
is_admin = False

print(is_logged_in)          # True
print(is_admin)              # False
print(type(is_logged_in))    # <class 'bool'>

# True and False are capitalized — always
# true and false don't work — Python is case sensitive

# Comparison operators — always return a bool
print(10 > 5)    # True
print(10 < 5)    # False
print(10 == 10)  # True
print(10 == 9)   # False
print(10 != 9)   # True

# All comparison operators
print(10 == 10)  # True  — equal to
print(10 != 9)   # True  — not equal to
print(10 > 5)    # True  — greater than
print(10 < 5)    # False — less than
print(10 >= 10)  # True  — greater than or equal to
print(10 <= 9)   # False — less than or equal to

# Bools work with variables too
age = 20
price = 150

print(age >= 18)    # True
print(price > 200)  # False
print(age == 20)    # True

# == compares, = assigns — never confuse them
x = 10        # assigns 10 to x
print(x == 10)  # True — compares x to 10
print(x == 9)   # False

# True and False are also 1 and 0 in Python
print(int(True))   # 1
print(int(False))  # 0
