Deal

Deal four hands of five cards

#!/usr/bin/python
numbers= ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']*4
suits=['h','d','c','s']*13
cards=[x+y for x,y in zip(numbers, suits)]
import random
random.shuffle(cards)
print cards[1:6];print cards[7:12];print cards[13:18];print cards[18:23]

 

About Linuxgal

Need a spiritual home? Consider joining us at Mary Queen of the Universe Latter-day Buddhislamic Free Will Christian UFO Synagogue of Vishnu
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s