Question: Write an expression that continues to bid until the user enters 'n'. Sample output with inputs: 'y' 'y' 'n' I'll bid $7! Continue bidding? I'll

Write an expression that continues to bid until the user enters 'n'. Sample output with inputs: 'y' 'y' 'n'

I'll bid $7! Continue bidding? I'll bid $15! Continue bidding? I'll bid $23! Continue bidding? 

import random random.seed(5)

keep_bidding = '-' next_bid = 0

while ''' Your solution goes here ''': next_bid = next_bid + random.randint(1, 10) print(f'I\'ll bid ${next_bid}!') print('Continue bidding?', end=' ') 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

Students Have Also Explored These Related Databases Questions!