How can we take inputs to a simple if and else comparison statement in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can we take inputs to a simple if and else comparison statement in python?

3rd Apr 2020, 9:53 AM
bala chandra reddy
bala chandra reddy - avatar
2 Answers
0
a=int(input()); b=int(input()); if a>b : print(a); else: print(b); you mean this?
3rd Apr 2020, 9:59 AM
Marco
Marco - avatar
0
jajaja true xD
3rd Apr 2020, 10:04 AM
Marco
Marco - avatar