Link Search Menu Expand Document
if condition:
    # statement
    # statement

if statement

if 2 > 1: print(“2 is greater than 1”)

# boolean expressions
1 > 2
False
'a' > 'b'
False
'a' > 'A'
True
chr(65)
'A'
ord('A')
65
ord('a')
97
balance = 119
payment = 20
balance == 0
False
payment != balance
True
if payment == balance:
    print('paid in full')
else:
    print('you owe ' + str(balance - payment))
you owe 99