Lesson 9 of 34 · +110 xp

If / Elif / Else

Multiple branches.

Explained simply

Your task

Write: if x > 0: print('pos') elif x == 0: print('zero') else: print('neg')

ifelse.py
▶ Output (python)
Click 'Run code' to execute your code in a real sandbox.
← Back