Can you explain me what's wrong with this code ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 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 Respostas
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