Question: The program should look like this: Please, show how to solve the following in Python (make it work correctly by correcting the mistakes) and explain

The program should look like this:

The program should look like this: Please, show how to solve the

Please, show how to solve the following in Python (make it work correctly by correcting the mistakes) and explain what was wrong (using comments inside the program file):

following in Python (make it work correctly by correcting the mistakes) and

'The program should ask user for positive integers and print them out. If user types zero or a negative number, the program should finish.'

Type a positive integer: 2 Your number: 2 Type a positive integer: 3 Your number: 3 Type a positive integer: 1 Your number: 1 Type a positive integer: 0 ***FINISHED*** while x>0: x=int(input('Type a positive integer: ')) print('Your number: ',x) print('***FINISHED***')

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!