@RobertDerry/

Blackjack Code-2

Python

Blackjack.

fork
loading
Files
  • main.py
  • requirements.txt
  • testing.py
main.py
1
2
3
4
5
6
7
8
9
10
11
import random
unused = ["1","2","3","4","5","6","7","8","9","Jack","Queen","King","Ace"] 
used = []
suit = ["Hearts", "Spades","Diamonds","Clubs"]
card = random.choice(unused)
print(card, "of" , random.choice(suit))

unused.remove (card)
used.append (card)
print(used)
print(unused)