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')
cluster_python Python Programming cluster_python_basics Python: The Language Fundamentals python_basics_python_0130_syntax_etc Syntax etc. python_basics_python_0120_helloworld Hello World python_basics_python_0130_syntax_etc->python_basics_python_0120_helloworld python_basics_python_0160_boolean Boolean python_basics_python_0150_datatypes_overview Datatypes python_basics_python_0160_boolean->python_basics_python_0150_datatypes_overview python_basics_python_0170_if The if Statement python_basics_python_0170_if->python_basics_python_0160_boolean python_basics_python_0110_blahblah Blahblah python_basics_python_0120_helloworld->python_basics_python_0110_blahblah python_basics_python_0140_variables Variables python_basics_python_0140_variables->python_basics_python_0130_syntax_etc python_basics_python_0150_datatypes_overview->python_basics_python_0140_variables