Printing a deck of cards (Python)
<p>Trying to create a deck of cards and printing them randomly. It gives me this message when I try to run my code:</p>

<pre><code>Traceback (most recent call last):
  File "C:\Users\Tobi01\Downloads\blackjack (1).py", line 31, in &lt;module&gt;
    deal_deck()
  File "C:\Users\Tobi01\Downloads\blackjack (1).py", line 14, in deal_deck
    card = random.choice(DECK)
  File "C:\Python31\lib\random.py", line 256, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range
</code></pre>

<p>Can someone tell me what I'm doing wrong?</p>

<pre><code> import random


def create_deck():
    for suit in SUITS:
        for pip in PIPS:
            card = (suit,pip)
            deck.apppend(card)




def deal_deck():
    card = random.choice(DECK)
    deck.remove(card)
    return card



CLUB = "\u2663"
HEART = "\u2665"
DIAMOND = "\u2666"
SPADE = "\u2660"

PIPS = ("A","2","3","4","5","6","7","8","9","10","J","Q","K")
SUITS = (CLUB, SPADE, DIAMOND, HEART)

DECK = []

create_deck
deal_deck()




for i in range(13):
    for j in range(4):
        pip,suit = deal_deck
        print(suit + pip, end = " ")
    print()
</code></pre>