+ 1
Whats the error nd what to do?
number = input("any number:") if number > 0: print('Lemon hooslo')
1 Odpowiedź
+ 6
As the input function converts whatever is entered by the user into a string, trying to compare it to an integer would only return an error. You would need to convert the input to an integer (by surrounding input() in int()) to get it to work.