using an if-else statement : If : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » If »

 

using an if-else statement


x, y = 43
if x < y:
     smaller = x
else:
     smaller = y
print smaller

smaller = (x < y and [xor [y])[0]
print smaller

smaller = x if x < y else y
print smaller



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» If