Question: 6 . 3 2 . Write a program that uses a loop to let the user solve expressions in the form of ( w +

6.3
2. Write a program that uses a loop to let the user solve expressions in the form of (w+x)**(y-z) :
Import the random module to implement the functions for random numbers.
Initialize the following: the number of problems won and done.
Let the user choose to enter the loop to play.
Use a while loop to do the following until the user chooses to quit:
Increment the number of problems done.
Use the randint () function in the random module to return 4 values to use in the expression:
The first value will come from a randint () range of 21 to 30.
The second value will come from a randint() range of 5 to 9.
The third value will come from a randint () range of 17 to 20.
The fourth value will come from a randint () range of 10 to 15.
Show the expression in the form of: random value +2nd random value
 6.3 2. Write a program that uses a loop to let

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!