Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

If else Python

x = 1
y = 1

if (x < y):
	st = "x is less than y"
elif (x == y):
	st = "x is the same as y"
else:
	st = "x is greater than y"

print (st)
Source by anh.cs.luc.edu #
 
PREVIOUS NEXT
Tagged: #If #Python
ADD COMMENT
Topic
Name
7+6 =