I want to make a certain range into the list, and then take the user's input and check if it is in the range. Here is what I have done so far:
lower = 1
upper = 10
range_list = list(range(lower, upper +1))
user_input = input()
while user_input in range_list:
print('foo')
else:
print('fee')
Currently, if I input the number that theoretically should be in a range (say, 5), it prints 'fee' rather than 'foo'. Where am I going wrong?