Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to use elif in python

x = 20
if x == 20:
  print("x = 20")
elif x == 30:
  print ("x = 30")
else:
  print("x is not 20 or 30")
 
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #How #elif #python
ADD COMMENT
Topic
Name
9+1 =