- 1
Can you explain me what's wrong with this code ?
a= input("Enter first number : ") b= input("Enter second number :" ) if a> b: print("First number is greater than second number") if a< b: print("First number is smaller than second number")
2 Answers
+ 3
You have to convert input() to int.
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2492/
+ 1
Ahmad Naweed , you read a and b as strings. Convert both of them to int.