Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

What is a firewall and how does it protect a network?

Answered: 1 week ago

Question

Question What are the requirements for a safe harbor 401(k) plan?30

Answered: 1 week ago