import random

def main1():
    coord = [10, 20, 5, 3, 30, 35, 40, 42]
    #  print a list of coordinates in pairs (10, 20), (5, 3), (30, 35), (40,42)
    
##    for n in coord:
##        print n

    for i in range(0, len(coord), 2):
        print "(%d, %d)"  % (coord[i], coord[i+1])
    

def main():
    suits = ['C', 'D', 'H', 'S']
    values = ['A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K']

    deck = []
    for val in values:
        for suit in suits:
            card = val + suit
            deck.append(card)
    print deck

    random.shuffle(deck)
    print deck

main()
