Activity 01
Pair Programming: Dice Roll Simulator
Pairs write a Python program using random.randint(1,6) inside a loop to simulate 100 dice rolls, printing each result and tallying frequencies in a list. They run the code, discuss if results match expected probabilities, and modify for two dice. Share screenshots in a class padlet.
Design a Python program that simulates a dice roll or coin flip.
Facilitation TipDuring Pair Programming: Dice Roll Simulator, circulate and ask each pair to explain how changing the seed affects their output before running the program.
What to look forProvide students with a Python code snippet that simulates rolling a six-sided die 10 times. Ask them to write down: 1. The expected frequency of each number (1-6). 2. One potential reason why the actual results might differ from the expected frequency.