Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

If else condition 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 codefreelance.net #
 
PREVIOUS NEXT
Tagged: #If #condition #Python
ADD COMMENT
Topic
Name
5+1 =