0

Why when i put input code then this program not work

https://code.sololearn.com/cPiY03Qi6e6A/?ref=app

27th Jul 2017, 4:37 AM
Roshan Kumar
Roshan Kumar - avatar
2 Answers
+ 1
You need to change num = input('enter number to check:') to num = int(input('enter number to check:')) Python assigns inputs as strings by default so you need to convert it into an integer.
27th Jul 2017, 4:40 AM
Hassie
Hassie - avatar
0
thanks
27th Jul 2017, 4:57 AM
Roshan Kumar
Roshan Kumar - avatar