Answered step by step
Verified Expert Solution
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
- Considering the following list write
numbers = [12, 75, 150, 180, 145, 525, 50]
Write a python code to achieve the following
- Find the average of the list
- Print the odd members of the list and find the average of them
- Print the even members of the list and find the average of them
- Print the reverse format of the list EX : 50, 525, . 12 using loops
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started