import random

deck = []
for suit in ('club', 'diamond', 'heart', 'spade'):
    for rank in range(1, 14):
        deck.append({'suit': suit, 'rank': rank})

player_hand = []
player_hand.append(deck.pop(random.randrange(len(deck))))
player_hand.append(deck.pop(random.randrange(len(deck))))

# Temporary
print('Player hand:')
for card in player_hand:
    print('suit: ' + card['suit'] + ', rank: ' + str(card['rank']))

# Temporary
print('Total number of cards in deck: ' + str(len(deck)))