Python Reading

Key Ideas

Lecture Activity

Active Learning: BlackJack Simulation

Write a Python program that simulates drawing two distinct cards from a shuffled, standard 52-card deck 10,000 times. The program should plot a histogram that shows the probability of each score.

Scoring Reminder: 2s through 10s score face value, jacks/queens/kings score 10, the first ace scores 11 and the second ace scores 1 (so that the score of two aces is 12 instead of 22).