Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Python Data Types and Math Operations
- Numbers 4 questions
- Booleans 7:51
- Logic 4 questions
- If, Else and Elif 11:12
- Use an if 1 objective
- Functions 11:37
- Reviewing Functions 3 questions
- Expecting Exceptions 7:15
- Exception Flow 2 questions
- While Loops 9:32
- Manners 2 questions
- The Random Library
- The Number Guessing Game
Instruction
The Random Library
For the number guessing game project, you'll need to create a random number. Each time the game is played, a new random number should be chosen for the player to guess. Luckily, Python has a built-in library to help with that called random
.
Let's play around with random
a bit to see how it works.
[[LAUNCH_WORKSPAC...