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

urg !!  urg !! 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.

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." In this assignment, you will be writing a Python program that will do the following: 1. It will ask the user to keep entering grades until they press the "Enter" button. If the user enters a negative number, any processing in step 2 should not be executed. Instead, the program should ask for a positive number. 2. As the grades are being entered one by one, your program will check passing and failing grades and keeps counting each kind. Passing grades are bigger or equal to 70, failing grades are less than 70. 3. In the end, the program will print the number of grades of each kind with appropriate text (for example: "You entered 20 grades. 12 students are passing and 8 are failing".) In this exercise, you will be writing a Python program that will do the following: 1. It will ask the user to specify a number. And then specify a string. 2. Then it will output on the screen according to the following example. Example - if the user enters 7 as the number and "Ifrane" as the string, your program will output: 1: Ifrane 2: Ifrane Ifrane 3: Ifrane Ifrane Ifrane 4: Ifrane Ifrane Ifrane Ifrane 5: Ifrane Ifrane Ifrane Ifrane Ifrane 6: Ifrane Ifrane Ifrane Ifrane Ifrane Ifrane 7: Ifrane Ifrane Ifrane Ifrane Ifrane Ifrane Ifrane Note: Make sure the numbers are in the output as well as the spaces between the repeated strings. In this assignment, you will be writing a Python program that will do the following: 1. It will ask the user to enter the number of numbers he would like to enter. 2. Then, it will ask the user to enter his numbers, and it will test whether they are in increasing or decreasing order, or not sorted at all. 3. As a result, it will display the adequate message: "Your numbers are increasing" "Your numbers a decreasing" or "Your numbers are neither increasing nor decreasing" NOTE: Below, you have been given 2 examples of how your program should work for three inputs. The text in big and bold letters is what the user entered in response to the program. Enter the number of numbers : 3 Enter number 1:34 Enter number 2:48 Enter number 3: 60 Your numbers are increasing RE Enter the number of numbers: 3 Enter number 1:34 Enter number 2: 88 Enter number 3: 60 Your numbers are neither increasing nor decreasing

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!