Let's imagine I have a set of 54 cards.
I want to make an initial distribution of 2 cards.
Then, I want to make a new distribution of 3 cards BUT the three new cards have to be different from the 2 cards distributed initially.
And so on...
Globally, at each distribution, the distributed cards come out of the 52-card deck. There is like a update of the 52-card deck at each distribution.
Here is my code but I don't know Python well enough to find a solution despite much research.
import random
cards = ["2 coeur", "3 coeur", "4 coeur", "5 coeur", "6 coeur", "7 coeur", "8 coeur", "9 coeur", "10 coeur", "Valet coeur", "Dame coeur", "Roi coeur", "A1 coeur",
"2 trèfle", "3 trèfle", "4 trèfle", "5 trèfle", "6 trèfle", "7 trèfle", "8 trèfle", "9 trèfle", "10 trèfle", "Valet trèfle", "Dame trèfle", "Roi trèfle", "A1 trèfle",
"2 carreau", "3 carreau", "4 carreau", "5 carreau", "6 carreau", "7 carreau", "8 carreau", "9 carreau", "10 carreau", "Valet carreau", "Dame carreau", "Roi carreau", "A1 carreau",
"2 pique", "3 pique", "4 pique", "5 pique", "6 pique", "7 pique", "8 pique", "A9 pique", "10 pique", "Valet pique", "Dame pique", "Roi pique", "A1 pique"]
first_card = (random.choices(cartes, k = 1))
second_card = (random.choices(cartes, k = 1))
first_distri = first_card + second_card
print(first_distri)
second_distri = (random.choices(cartes, k = 3)) #AND ????
I thought about a command that would like an "exept" for instance :
second_distri = (random.choices(cartes, k = 3)) EXCEPT first_distri.
But I'm not sure it exists.
I tried different things with if/else
but nothing worked.