0

Please See the code and please correct it if it has too mistakes

x = input (" ") if x : 24 print ("given number is correct") elif : x < 24 print ("given number is smaller than the number expected") elif : x > 24 print ("given number is greater than the number expected")

17th Aug 2020, 3:50 PM
Bhuvan Blaster
Bhuvan Blaster - avatar
5 odpowiedzi
+ 3
You have many mistakes: indentation error, syntax error, colon and newlines on wrong places, etc. you are comparing numbers, so it is necessary to convert the given input to number, so you should use int() to convert the input to string as python takes input as string by default. See the correct and working code: https://code.sololearn.com/cc9PebpRA3Dk/?ref=app
17th Aug 2020, 3:54 PM
Bibek Oli
Bibek Oli - avatar
0
Does it have a mistake? Does it give the result you are looking for? If no then please tell us what is wrong.
17th Aug 2020, 3:51 PM
Dragonxiv
Dragonxiv - avatar
0
It's giving indentation error
17th Aug 2020, 3:52 PM
Bhuvan Blaster
Bhuvan Blaster - avatar
0
Indentation error. If you solve indentation error it gives syntax error
17th Aug 2020, 3:57 PM
Allamprabhu Hiremath
0
Thanq all of you
18th Aug 2020, 3:19 AM
Bhuvan Blaster
Bhuvan Blaster - avatar