Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python else 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 anh.cs.luc.edu #
 
PREVIOUS NEXT
Tagged: #python #syntax
ADD COMMENT
Topic
Name
6+2 =