Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python else elif

>>> a = 5
>>> if a > 5:
...     a = a + 1
... elif a == 5:
...     a = a + 1000
... else:
...     a = a - 1
... 
>>> a
1005
Source by python.doctor #
 
PREVIOUS NEXT
Tagged: #python #elif
ADD COMMENT
Topic
Name
5+4 =