6 Answers
+ 5
Yes. Here it is:
if (a > b):
print("a > b")
elif (a < b):
print("a < b")
else:
print("a = b")
+ 2
Thanks Bud
+ 2
temperature = float(input('What is the temperature? '))
if temperature > 70:
print('Wear shorts.')
else:
print('Wear long pants.')
print('Get some exercise outside.')
+ 2
input("hi, I'm gonna display election result ")
highest vote=int (50)
lowest vote=into(0)
if vote==50:
print(" congratulations ")
print(" u are the winner")
elif vote <50:
print("better luck next time")
+ 1
its called `elif `
if 1 < 0:
elif 1 > 0 :
+ 1
elif is pythons else if statement