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
num = 20 if num > 30: print("big") elif num == 30: print("same") else: print("small") #output: small
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#elif
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit