repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import random
import itertools


player_count = int(input('How many players?'))

suits = ['s', 'h', 'c', 'd']
values = ['A', '2', '3', '4', '5', '6', '7', '8', '9', 'J', 'Q', 'K']
deck = set(itertools.product(values, suits))
drawn_cards = random.sample(deck,(5 + 2 * player_count))
print(drawn_cards)