Page 66 -
P. 66
starting to code
Ready Bake
Code
If you add these two lines of code to the top of your program:
from random import randint
secret = randint(1, 10)
The secret variable will be set to a random number between 1 and 10. Modify your
program from the facing page so that instead of the answer always being 5, it will
instead use a random number from 1 to 10 as the answer.
Write the next version of your
program here. This version of your
program uses the value of the “secret"
variable as the correct answer.
you are here 4 31