elif not in python code example

Example 1: python else if statement not working

#In python, it's not
else if #INCORECT
#It's 
elif #CORECT
#if your elif statement is not working, it's probably because your using
else if #INCORECT

#An example of this is:
myVar = False

if myVar == True:
  print("yes")
elif myVar == False:
  print("no")
else:
  print("I don't know")

def myTest():
  print("Test Complete!")
  
#Prints "no" with no errors!

Example 2: elif python

The elif statement allows you to check multiple expressions for TRUE 
and execute a block of code as soon as one of the conditions evaluates
to TRUE. Similar to the else, the elif statement is optional. However,
unlike else, for which there can be at most one statement, there can 
be an arbitrary number of elif statements following an if.

if expression1:
   statement(s)
elif expression2:
   statement(s)
elif expression3:
   statement(s)
else:
   statement(s)