DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+2 =
Submit