Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python if else

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)
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
1+6 =