POP an integer out of a list and keep going til list is gone? : I have created a random list and trying to pop a number out by using a userInput and keep going but it keeps giving me the error, pop index out of range. Even .remove() is not working. I am a little confused. 

import random

hand= []


for i in range(10):
    hand.append(random.randrange(1,10))
print (hand)

userInput = int(input("What card do you want to play? "))

while True:
    if userInput > 0:
        hand.pop(userInput)
    