Question: Write a program that creates the list with the following numbers: 3 , 9 , 1 , 4 , 5 . Use a for loop

Write a program that creates the list with the following numbers: 3,9,1,4,5.
Use a for loop to print the sum.
Use a while loop to print the sum.
Use an index to print the first number in the list.
Use an index to print the middle number in the list.
Use an index to print the last number in the list.

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 Programming Questions!