- 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")

15th May 2020, 12:03 PM
Ahmad Naweed
2 RĂ©ponses
15th May 2020, 12:06 PM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
+ 1
Ahmad Naweed , you read a and b as strings. Convert both of them to int.
15th May 2020, 12:05 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar