Copy of Python Loop Exercises 3
Copy of Python Loop Exercises 3
Expected Outcome
You are going to answer questions from 7’s multiplication table
What is 1 times 7? 7
Correct!
What is 2 times 7?12
Correct answer is 14
What is 3 times 7?skip
Skipped question
What is 4 times 7?quit
Finished
2. In this part, you are going to modify the first question ( multiplication table).
a. Open a new codeHS
b. Copy and paste first program
c. Get random numbers for multiplication table (range can be from 1 to 10
inclusive)
i. Be careful about where to get random numbers
ii. To be able to use randint function to generate random numbers add
random module to your program
import random
iii. To use random numbers use random.randint(1, 11)
d. Other parts of the program will be the same with the first program.