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), 23.06.2019 22:30
Need with my drivers ! ** willl mark you brainliest if answered correctly ** when the center line is one solid yellow line and one broken yellow line, who may cross the line to pass? a. traffic on the side with the broken yellow line b. traffic on the side with the solid yellow line c. traffic on either side d. nobody
Answers: 1
question
Advanced Placement (AP), 25.06.2019 15:00
Unlike plato, aristotle emphasized that knowledge is a product of
Answers: 1
question
Advanced Placement (AP), 25.06.2019 20:00
Motorcyclists may have to suddenly change direction when encountering a. potholes and reflective markers b. yellow lights c. pavement seams and railroad crossings d. strong winds
Answers: 1
question
Advanced Placement (AP), 26.06.2019 21:00
In which part of an interview would you have informal conversation to build rapport? opening body closing
Answers: 2
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, 31.01.2021 21:10
question
Mathematics, 31.01.2021 21:20
question
Health, 31.01.2021 21:20
Questions on the website: 13722361