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 DayMar 16, 2021

Answer To: For this interactive assignment, you will design a program that asks the user to enter a series of...

Pratap answered on Mar 16 2021
151 Votes
####
#####LIST OF 20 NUMBERS#####
def update_list(array, difference):
"""Function to update t
he missing numbers in the array"""
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):
array.append(update[i]) #update the list
return array
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