- elif
- else if
Conditionals: elif
examples/basics/elif.py
def main(): a = input("First number: ") b = input("Second number: ") if int(a) == int(b): print("They are equal") elif int(a) < int(b): print(a + " is smaller than " + b) else: print(a + " is bigger than " + b) main()