How to make deck of cards in android phone . Pydroid 3

 Hey let's make a deck of cards .

This is the source of code to make deck of cards . 


import random
cardfaces= []
suits = ["hearts","diamonds","cubs","spades"]
royals = ["J","Q","K","A"]
deck = []
for i in range(2,11):
	cardfaces.append(str(i))
for j in range(4):
	cardfaces.append(royals[j])
print(cardfaces)

Post a Comment

0 Comments