Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if 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 codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #syntax
ADD COMMENT
Topic
Name
8+1 =