I'm currently studying Python basics and got stuck in this While loop:
numbers = [1, 3, 6, 9]
n = int(input('Type a number between 0 and 9: '))
while 0 > n > 9:
n = int(input('Type a number between 0 and 9: '))
if n in numbers:
print('This number is on the number list!')
What I want is a loop that runs till the user introduces a number between 0 and 9 and them check if it is on the list. I've already searched for it in the web but I can't find where I'm wrong.