Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write an expression that continues to bid until the user enters 'n'.
Sample output with inputs: 'y'y''n'
I'11 bid $7!
Continue bidding? I'll bid $15!
Continue bidding? I'11 bid $23!
Continue bidding?
Learn how our autograder works
543630,3925610.037 q 77
import random
random. seed(5)
keep_going =?'-'
next_bid =0
while |:
next_bid = next_bid + random. randint (1,10)
print('I 'll bid ${}!'. format(next_bid))
print ('Continue bidding?', end='')
keep_going = input()
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions