if number > 0: print(f"{number} is positive")
elif
statement, which is short for else if:
if number > 0: print(f"{number} is positive") elif number < 0: print(f"{number} is negative")
else
statement:
if number > 0: print(f"{number} is positive") elif number < 0: print(f"{number} is negative") else: print("0 is not positive or negative")
if
keyword, and
there can be one only
elif
statements as you want after
an if statement
else
statement only, and it must be
at the very end of the if and elif statements
Your code
Your code
Your code
Your code