Question: In this assignment, you will write a script to compute a summation of a series of input integers. Here are the requirements for this
In this assignment, you will write a script to compute a summation of a series of input integers. Here are the requirements for this assignment: 1) Write a while-loop to ask the user to input integers one by one until the user inputs "End". When the loop stops, print the summation of the input integers. (10 points) (Hint: the stop condition is the input == 'End'). 2) The input is considered valid if it is an integer. Any other input is considered to be invalid (e.g. 2.75). If the input is invalid, print "Error" and ask the user to input a new number. (10 points) Please submit a Python script in Canvas for this assignment before the due date.
Step by Step Solution
3.29 Rating (146 Votes )
There are 3 Steps involved in it
A Python script that meets the requirements Use a while loop to continuously ask the user for input ... View full answer
Get step-by-step solutions from verified subject matter experts
