Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import itertools
- type_card = ['Dimond', 'Spades', 'Heart', 'Clubs']
- rank_card = [str(n) for n in range(1, 11)] + ['J', 'Q', 'K', 'A']
- deck_combo = list(itertools.product(type_card, rank_card))
- print([(x+y) for x, y in deck_combo])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement