1.Write a program that calculates the average of the scores in a list. The program should print the list before calculating the average and after it is calculated.
Hints:
Create a list with numbers
Print the list
Calculate the total of the list elements using a for loop
Calculate the average of the elements (use len function) and display the avg
2.Write a program that demonstrates the insert method. The program should print the list before and after the insert.
Hints:
Create a list with 6 names
Print the list
Call the insert function to insert another name in '5' element of the list and then print the list.
3.Write a program that asks the User to enter a series of 5 numbers. The program should store the numbers in the list and then display the Lowest and Highest number in the list.
Hints:
Create an empty list
Define variables
Prompt the user for numbers and use a for loop store the numbers in the list (use append method).
Use min and max function to calculate Low and high numbers
OUTPUT should look like :
Enter number 1 of 5: 9
Enter number 2 of 5: 2
Enter number 3 of 5: 3
Enter number 4 of 5: 4
Enter number 5 of 5: 5
Low: 2.0
High: 9.0