My code:
n = [int(input()) for c in range(0, 5)]
lista = list(range(0, 10))
if n not in lista:
print('1')
else:
print('2')
I type 1, 2, 3, 4, 5 and the answer is "1", the numbers 1 through 5 are within the "list" that includes the numbers 0 through 10, so I guess I am not relating list with the other correctly. I would like to know how to check if the values in the first list are within the second, if in case the input is the example I used.