This Content is from Stack Overflow. Question asked by Juras
if number % 2 == 0:
number = “even”
number = “odd”
You would have to take the user-input, and then run the function with the number the user did type. example:
userinput = input("Type a number: ")
This Question was asked in StackOverflow by Juras and Answered by Stian Larsen It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.