title: How do I delete a list within a list in Python?
body: <p>My program involves drawing a card from a deck, adding the value of it to my hand and then deleting the card from the deck (since I don't want to draw the same card twice). </p>
  
  <p>Example of a card:</p>
  
  <pre><code>card = ["4 of clubs", 4]
  </code></pre>
  
  <p>The code that doesn't work:</p>
  
  <pre><code>card_number = random.randrange(len(deck_cards))
  card = deck_cards[card_number][0]
  print(card)
  hand_value += deck_cards[card_number][1]
  deck_cards.remove(card_number)
  </code></pre>
  
  <p>I have no idea what I am doing wrong, and if I change the code to</p>
  
  <pre><code>card_number = random.chioce(deck_cards)
  </code></pre>
  
  <p>it won't accept the <code>card = deck_cards[card_number][0]</code> part.</p>
  
  <p>What to do? </p>