Question: s Bidding example. Variable keep_bidding is initially assigned with y'. Within the while loop, keep_bidding is updated with the user's next input value. Complete the

s

Bidding example. Variable keep_bidding is initially assigned with y'. Within the while loop, keep_bidding is updated with the user's next input value. Complete the while loop's expression to terminate the while loop if the user enters 'n'. Ex: If the input is y" y' 'n', then the output is: I'll bid $10! Continue bidding? (y) I'll bid $15! Continue bidding? (y) I'll bid $21! Continue bidding? (y) Learn how our autograder works 657814.5138786.qx3zqy7 1 import random 2 random . seed(5) 1 test passed W 4 keep_bidding = 'y' 5 next_bid = 0 6 All tests passed 7 while "'' Your solution goes here " ": 8 next_bid = next_bid + random. randint(1, 10) print(f'I\\'ll bid ${next_bid}!' ) 10 print ( ' Continue bidding? (y) ', end=' ') 11 keep_bidding = input()

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