In Python 3, input
returns a string. You can’t perform modulo on a string. So you need to make it into an integer.
number = int(input('Enter a number:'))
solved Determining Odd or Even user input
In Python 3, input
returns a string. You can’t perform modulo on a string. So you need to make it into an integer.
number = int(input('Enter a number:'))
solved Determining Odd or Even user input