- 1

Hi, someone can say to me why my test code doesnt work?

(I apologize if my english is bad) Hi, im learning python and i made a basic code for testing what i learned, but it doesnt work, can someone say to me why it dont work? https://code.sololearn.com/cjFg8AZgs2FT/?ref=app

15th Apr 2017, 6:16 PM
Racotersito
Racotersito - avatar
3 Respostas
+ 5
Convert the result of input("Number") to int and not int("Number") a=int(input('Number')) #here was the error if a > 10: print('That number is greater than 10') if a < 10: print('That number is minor than 10')
15th Apr 2017, 6:24 PM
Shraddha
Shraddha - avatar
+ 5
Happy to help 😉
15th Apr 2017, 6:26 PM
Shraddha
Shraddha - avatar
+ 1
Thanks you!
15th Apr 2017, 6:25 PM
Racotersito
Racotersito - avatar