title: Removing an item from a list using a variable
body: <p>I'm building a poker game against a bot, and have the card numbers in a list. When the player or bot is given a card I obviously need that card to be deleted from the list so it doesn't get dealt again.</p>
  
  <pre><code>def dealPlayer():
      cardSuit = random.randrange(1, 5) #Decide card suit#
      if cardSuit == 1:
          cardNum = random.randrange(0, 13) #Decide card num#
          if cardNum == 11: #Make sure it prints the name not position in list#
              cardNum = "jack"
          elif cardNum == 12:
              cardNum = "queen"
          elif cardNum == 13:
              cardNum = "king"
          elif cardNum == 0:
              cardNum = "ace"
          print ("Your first card is the", cardNum, "of clubs.")
          del Clubs[cardNum] #Problem#
          print(Clubs) #Debugging#
  </code></pre>
  
  <p>The problem I'm having is on the second to last line. Here is the error that it kicks up to me: </p>
  
  <pre><code>TypeError: list indices must be integers or slices, not str
  </code></pre>