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 tlc.mkce.ac.in #
 
PREVIOUS NEXT
Tagged: #How #elif #python
ADD COMMENT
Topic
Name
8+2 =