web-profile

Python if-elif-else

some_var = 5

if some_var > 10:
    print("some_var > 10")
elif some_var < 10:
    print("some_var < 10")
else:
    print("some_var = 10")

Leave a Reply

Your email address will not be published.