subject

Create a new program in Repl. it called "Lists." Your goal for this program is to create sections of code that will perform different outputs with the list called, names which
contains the following values - Peter, Bruce, Steve, Tony, Natasha, Clint, Wanda, Hope,
Danny, Carol and the list called numbers which contains the following values - 100, 50, 10,
1, 2, 7, 11, 17,53,-8, -4,-9,-72,-64, -80. At the beginning of your program, add in any
comments and create the two lists. Then create the following:
1. A loop that will output every other name in the names list.
2. A loop that will output only the positive numbers in the numbers list.
3. A loop that will output the sum of all the values in the numbers list.
4. A loop that will output only the numbers that are odd.
5. A loop that will output only the names that come before "Thor" in the alphabet from
the names list.
6. A loop that will find the maximum or minimum value in the numbers list. This algorithm
requires an additional variable that is assigned to the first element in the list. Then, in a
loop compare each element to the variable. If the element is > (for max) or < (for min),
assign the variable to the element. After the loop, print the variable.
HINT: len() is a helpful method that can be used on strings or lists to determine how
For lists that would mean how many elements are inside and for strings,

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 23:00
What is the term for a loan with a cosigner? an automobile loan a guaranteed loan a consignment loan a contractual loan
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:20
You find a mysterious, dull substance on the ground and pick it up for a closer look. it is powdery, very light, and soft to the touch. the substance is most likely i. an organic mineral ii. a metallic mineral iii. a nonmetallic mineral i only ii only iii only i and ii i and iii
Answers: 1
question
Advanced Placement (AP), 26.06.2019 18:00
Let r(t) represent the rate, in square feet per minute, at which a groundskeeper is mowing a lawn t minutes after 3 p.m. what expression represents the area, in square feet, of the lawn that is mowed between 3 p.m. and 5 p.m.?
Answers: 1
question
Advanced Placement (AP), 27.06.2019 17:30
Which of the following occurred just before the current era?
Answers: 1
You know the right answer?
Create a new program in Repl. it called "Lists." Your goal for this program is to create sections o...
Questions
question
Mathematics, 30.08.2019 19:00
question
Mathematics, 30.08.2019 19:00
question
Mathematics, 30.08.2019 19:00
question
Social Studies, 30.08.2019 19:00
Questions on the website: 13722367