RosettaCodeData/Task/Conditional-structures/Python/conditional-structures-1.py

9 lines
83 B
Python

if x == 0:
foo()
elif x == 1:
bar()
elif x == 2:
baz()
else:
boz()