Python: The if Statement

The if Statement

Conditional code execution

if
if i <= 3:
    print(i)
else (optional)
if i <= 3:
    print(i)
else:
    print('many')
elif (optional)
if i == 1:
    print('1')
elif i == 2:
    print('2')
elif i == 3:
    print('3')
else:
    print('many')