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 www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #If #Python
ADD COMMENT
Topic
Name
3+2 =