Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if elif else

def function(a):
    if a == '1':
        print ('1a')
    elif a == '2':
        print ('2a')
    else:
        print ('3a')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #elif
ADD COMMENT
Topic
Name
6+8 =