I have a little issue solving this : "there is a drawing of 3 cards for a game of 52 cards. I would like to know the probability of having the first card equal to being a 3, then the second card equal to being a spade, then the last card to be a black card (so spade or clubs). At the moment, I have this code, but I don’t know how to continue :
from random import *
from math import *
val=["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Valet", « queen », « king »]
col=["spades", "diamonds", "hearts", "clubs"]
cards=[(x,y) for x in val for y in col]
Thanks for your help :)
Aucun commentaire:
Enregistrer un commentaire