Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import itertools
  4.  
  5. type_card = ['Dimond', 'Spades', 'Heart', 'Clubs']
  6. rank_card = [str(n) for n in range(1, 11)] + ['J', 'Q', 'K', 'A']
  7.  
  8. deck_combo = list(itertools.product(type_card, rank_card))
  9.  
  10. print([(x+y) for x, y in deck_combo])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement