Advertisement
Advertisement
# Python - else-if statement example
if(99>100):
print("99 is greater than 100")
elif(99<90):
print("99 is less than 90")
print"(Statement not connected to elif statement")
Statement not connected to elif statement
# Python - elif statement with an optional else statement example
if(99>100):
print("99 is greater than 100")
elif(99<90):
print("99 is less than 90")
else:
print("99 is greater than 90 and less than 100")
print"(Statement not connected to elif statement")
99 is greater than 90 and less than 100
Statement not connected to elif statement
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement