Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in a list and then display the following data: The...

1 answer below »

For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in a list and then display the following data:

  • The lowest number in the list.
  • The highest number in the list.
  • The sum of the numbers in the list.

Once you have completed the program, take a screen shot of the completed functionality (including the input and the output) and save it in a Word document, along with the script.

  • Describe your process in developing the program. Bulletized and paragraph format.
Answered Same Day Mar 16, 2021

Solution

Pratap answered on Mar 16 2021
153 Votes
####
#####LIST OF 20 NUMBERS#####
def update_list(a
ay, difference):
"""Function to update the missing numbers in the a
ay"""
try:
#user input
update = list(map(int, input("Enter {} space separated numbers.\n".format(difference)).rstrip().split()))
#check for sufficient input
if len(update) >= difference:
for i in range(difference):
a
ay.append(update[i]) #update the list
return a
ay
else:
#insufficient input
print("Insufficient numbers! Please try again.")
return None
except:
print("Invalid input", Exception.__class__) #exception handling
return None
def get_list_numbers():
"""Main function to get the list and perform the required outcome."""
try:
print("Enter...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here