Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if elif else

boolean1 = (1 != 1)
boolean2 = (2 + 2 == 5)
boolean3 = (1 == 1)

if (boolean1):
	print("Boolean one is true")
elif (boolean2):
	print("Boolean two is true")
else:
	print("Boolean three may, or may not be true")
Source by tlc.mkce.ac.in #
 
PREVIOUS NEXT
Tagged: #python #elif
ADD COMMENT
Topic
Name
2+3 =