When i make the deck it has 52 card in order.
Using
So running the code it will never choose the same card twice when dealing out 5 cards.
Which i think solve his task.
if taking task further where used card can not be chosen again it can be a problem.
Then has to use something like
Using
random.shuffle
shuffle the deck in place.So running the code it will never choose the same card twice when dealing out 5 cards.
Which i think solve his task.
if taking task further where used card can not be chosen again it can be a problem.
Then has to use something like
list.pop
to get cards out of deck.