Question: FOR THIS EXERCISE JUST USE THE WHILE OR FOR LOOP AND FUNCTION RANGE Considering the following list write numbers = [12, 75, 150, 180, 145,

FOR THIS EXERCISE JUST USE THE WHILE OR FOR LOOP AND FUNCTION RANGE

  1. Considering the following list write

numbers = [12, 75, 150, 180, 145, 525, 50]

Write a python code to achieve the following

  1. Find the average of the list
  2. Print the odd members of the list and find the average of them
  3. Print the even members of the list and find the average of them
  4. Print the reverse format of the list EX : 50, 525, . 12 using loops

  1. By using for loop create the following program which collect an input and print it in a following pattern

EX : if the input was * then the out put

*

* *

* * *

* * * *

* * * * *

* * * *

* * *

* *

*

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!