Question: Your task in this programming assignment is to write a Python program that generates a list of integers, such that both its length and the

 Your task in this programming assignment is to write a Python

Your task in this programming assignment is to write a Python program that generates a list of integers, such that both its length and the integers added to the list are provided by the user. Subsequently, display the list, followed by information about the list. Here's output of a sample run (user input is shown in bold red) How many integers would you like to add to the list? 7 Enter an integer: 54 Enter an integer: 91 Enter an integer: 23 Enter an integer: 8 Enter an integer: -66 Enter an integer: 39 Enter an integer 2 The original list: [54, 91, 23, 8, -66, 39, 2] The length of the list is 7. The minimum value in the list is -66. The maximum value in the list is 91. The sorted 1ist: [-66, 2, 8, 23, 39, 54, 91] The reverse sorted list: [91, 54, 39, 23, 8, 2, -66] To help clarify, here are some specifics and/or constraints (1) Generating the list (including its length) must be done in a function that is called from the main part of the program (see the template for more details); (2) You must use the list functions discussed in class to add integers to the list and to display information about the list (i.e., its length, the minimum and maximum values in the list, sorting the list, and reverse sorting the list); (3) You must use the provided source code template; and (4) You must submit your source code as a single py file

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!