Advertisement
GreatRaymondo

cards

Mar 30th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import itertools, random
  2.  
  3. deck = list(itertools.product(range(1,13),["Spades","Hearts","Diamonds","Clubs"]))
  4.  
  5. random.shuffle(deck)
  6.  
  7. print("You got:")
  8. for i in range(5):
  9. print(deck[i][0], "of" , deck[i][1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement