Python_A10
Python_A10
The guessing game you will make needs a loop that repeats itself a
specific number of times. This will be used to set the number of guesses.
Follow the instructions to write code that repeats using a for loop. In the previous assignment
you made a while loop, which can repeat instructions forever. A for loop repeats instructions a
specific number of times. It is used when you know how many times they should repeat. This is
programming knowledge you will use often.
When you see the question you just added, answer yes two times.
I can say this four times.
Should I do it? yes or no? yes
I can say this four times.
Should I do it? yes or no? yes
Run the program again. Say yes to each question. Close the Python Shell.
Close Python