I am creating a main.py file that will eventually hold the whole game.
To shuffle, type import random at the top of your code. Then paste the list of cards. Then type deck.shuffle() at the end of the code that makes the deck of cards.
To get a card from the deck of cards, you can use deck.pop().
I am creating a main.py file that will eventually hold the whole game.
To shuffle, type
import random
at the top of your code. Then paste the list of cards. Then typedeck.shuffle()
at the end of the code that makes the deck of cards.To get a card from the deck of cards, you can use
deck.pop()
.