Python Program to Shuffle Deck of Cards
import itertools, random deck= list(itertools.product(range(1,14),['Spade','Heart','Diamond','Club'])) random.shuffle(deck) print("Your combination of cards is :") for i in range(5): print(deck[i][0],"of", deck[i][1])
Output:
Your combination of cards is : 11 of Heart 2 of Spade 13 of Club 7 of Club 4 of Club