Assignment
Now that you have knowledge about Python, including the basics, and the format() method, creating your own methods, and conditionals, it's time for your first assignment!
It won't take up much of your time, but will be essential to firm up your knowledge and make sure you are taking maximum value from the course.
Here is what the assignment should do as a minimum, but feel free to expand on it!
- Create a variable that holds a "magic number" between 0 and 10;
- Tell the user to pick a number between 0 and 10;
- If the user picks the magic number, tell them they've won; and
- If the user does not pick the right number, tell them to run the program again.
You can do this with the tools given to you in this section.
Good luck!