Python Fundamental Exercises
1. Introduction to Programming
2. If Statements
3. GUIs
4. If Statements II
5. Random Numbers
Randomness
Magic 8-Ball
A Number-Guessing Game
Fortune Cookie
Dice
One Shot Hi-Lo
Three-Card Monte
▶️ Generate Random Numbers and Data Using the random Module
6. While Loops
7. Post-test Loops
8. While Loops II
9. For Loops
10. Project
11. Graphics
12. Functions
13. Project II
14. Exceptions
15. For Loops II
16. Nested Loops
17. File RW
18. Lists
19. Sorting
20. Graphics II
21. Dictionaries
22. Classes: Fields
23. Project III
24. Classes: Methods
25. Classes: Inheritance
26. Project Euler
27. Project IIII
Python Fundamental Exercises
»
5.
Random Numbers
View page source
5.
Random Numbers
¶
Randomness
Magic 8-Ball
A Number-Guessing Game
Fortune Cookie
Dice
One Shot Hi-Lo
Three-Card Monte
▶️ Generate Random Numbers and Data Using the random Module