CommencerCommencer gratuitement

More cards

Now let's use the deck of cards to calculate some conditional probabilities.

Deck of cards

Cet exercice fait partie du cours

Foundations of Probability in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Needed probabilities
P_first_Jack = ____/____
P_Jack_given_Jack = ____/____

# Joint probability calculation
P_two_Jacks = ____ * ____

print(P_two_Jacks)
Modifier et exécuter le code