Files
2026-10-19 20:29:13 +02:00

18 lines
375 B
Python

import random
ranks = [2,3,4,5,6,7,8,9,10,"Jack","Queen","King","Ace"]
suits = ["of Clubs", "of Diamonds", "of Hearts", "of Spades"]
deck = []
counter = 0
y = 0
x = 0
for _ in range (len(suits)):
y = 0
for _ in range (len(ranks)):
deck.append(f"{ranks[y]} {suits[x]}")
y += 1
counter +=1
x +=1
print(deck[random.randint(0,len(deck)-1)])