for i in range (len(userCards)):
print("i is "+str(userCards[i]))
if userCards.count(userCards[i]) == 4:
userMatches = userMatches + 1
userCards.remove(userCards[i])
I'm trying to remove duplicate cards from a list of numbers but I keep getting the list index out of range error