Write a program that automatically generates a Python list of 25 random integers between 0 and 100 inclusive. Then display the following menu to the user: 1 )Add random numbers to the list: When the user selects this option, the program will add 10 random integers between 0 and 100 to the list 2)Display statistics on the list: When the user selects this option, the program will display the total sum of all numbers in the list and the average. The program will display a line graph of the data where the number is on the y-axis,and the index position is plotted on the x-axis. 3)Trim the list: When the user selects this option, the program will remove all even numbers from the list. 4)Exit : When the user selects this option, the program will terminate with a message to the user.
Python
Write a program that automatically generates a Python list of 25 random integers between 0 and 100 inclusive. Then display the following menu to the user:
1 )Add random numbers to the list: When the user selects this option, the program will add 10 random integers between 0 and 100 to the list
2)Display statistics on the list: When the user selects this option, the program will display the total sum of all numbers in the list and the average. The program will display a line graph of the data where the number is on the y-axis,and the index position is plotted on the x-axis.
3)Trim the list: When the user selects this option, the program will remove all even numbers from the list.
4)Exit : When the user selects this option, the program will terminate with a message to the user.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)