Question: In this assignment, you will be writing a Python program that will do the following: 1. It will ask the user to keep entering positive

 In this assignment, you will be writing a Python program that

In this assignment, you will be writing a Python program that will do the following: 1. It will ask the user to keep entering positive numbers until they enter - 1. (We assume the user will only enter positive numbers; therefore no need to test). 2. As the inputs are being entered, the program will keep outputting the square of the number entered 3. In the end it will say "thank you." Example - When the user enters 3, it will right away print 9, when the user enters 10, it will right away print 100, and so on. When the user enters -1, it will print "Thank you

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!