Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 315 Bytes

if_statements.rst

File metadata and controls

19 lines (15 loc) · 315 Bytes

If statement

x = 5
y = 10
z = 22

if x > y:
    print('x is greater than y')
elif x == z:
    print('x is less than z')
elif 5 == 2:
    print('5 is greater than 2')
else:
    print('if and elif(s) never ran')