PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
def yes_no():
num = int(input(""))
if num in range(0, 100000000):
remainder = num % 2
if remainder == 0:
print ("This is an even number.")
else:
print ("This is an odd number.")
if num not in range(0, 100000000):
print ("Number is too high or too high or too low.")
# For some reason, when run the output always has "None" in it, and I'm not sure how to get rid of it. At the same time, the last if doesnt seem to work properly, as if you do a negative number it gives a local variable error that says the remainder variable is being called before being aasigned.
print(yes_no())
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run