Loading, please wait...

Shuffle Cards

To shuffle cards

 

Code:

import itertools, random

deck = list(itertools.product(range(1,14),['Spade','Heart','Diamond','Club']))
random.shuffle(deck)
print("You got:")
for i in range(5):
print(deck[i][0], "of", deck[i][1])

 

Then, Click on the run button to execute it.