0
Why when i put input code then this program not work
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.
0
thanks