Module 9
Modules
import, math, random, your own file
When you finish this module you can say:
I can split my code into modules and make randomness reproducible.
By the end of this module you'll be able to split your code into your own module and write a simulation that estimates a probability by experiment, giving the same result every time it runs.
StartLessons
5 lessons · ≈ 48 min
- import and namespaces8 min
- math: ready-made math8 min
- random and seed10 min
- Your own module10 min
- Project: Dice simulation12 min · project
Practice exercises
Short writing exercises, independent of the lessons: Go to the exercises