I'm doing the basic Python card trick and what I've searched for is too complicated, here's my code:
import random
import itertools
deck = ["S A","S 2","S 3","S 4","S 5","S 6","S 7","D A","D 2","D 3","D 4","D
5","D 6","D 7","C A","C 2","C 3","C 4","C 5","C 6","C 7"]
random.shuffle(deck)
for z in range(3):
print("Pile ",[z+1])
for i in range(7):
print(deck[i])
What I am trying to do is get it so when I get my 3 piles, I don't want any duplicate values but I can't work out how I do it, or how I get them in 3 separate columns?