Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python elif syntax

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 #syntax
ADD COMMENT
Topic
Name
5+7 =