Let's play cards
You have a regular deck of 52 well-shuffled playing cards. The deck consists of 4 suits, and there are 13 cards in each suite: ranks 2 through 10, a jack, a queen, a king, and an ace. This means that in the whole deck of 52, there are four of each distinct rank: four aces, four kings, four tens, four fives, etc.
Since there are 52 distinct cards, the probability of drawing any one particular card is 1/52. Using the two rules of probability you've learned about in the last video, calculate the probabilities of drawing some specific combinations of cards, as described in the instructions.
Este ejercicio forma parte del curso
Bayesian Data Analysis in Python
Ejercicio interactivo práctico
Prueba este ejercicio completando el código de muestra.
# Calculate probability of drawing a king or queen
p_king_or_queen = ____
print(____)