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 08:30
The 529 plan is the type of plan. a. financial fid. b. grant. c. tuition savings. d. scholarship
Answers: 1
question
Advanced Placement (AP), 23.06.2019 20:00
*i will mark you brainliest plus 10 free points * which of the following is not a basic defensive driving skill? a. a solid grasp on the instruments and controls at your disposal. b. the pre-drive procedures and adjustments to your ride. c. scanning for hazards and adequate space management. d. the post-drive procedures and adjustments during your ride. e. all of the above
Answers: 1
question
Advanced Placement (AP), 24.06.2019 05:00
Which courtroom participant is james in the given scenario? josh, the accused, is undergoing a criminal trial. mr. kent, josh’s neighbor and college professor, has been called upon to vouch for josh’s good conduct, academic performance, and likeable behavior. mr. kent is thus playing the role of a in the courtroom.
Answers: 3
question
Advanced Placement (AP), 25.06.2019 01:30
General ways to reduce the risk of some action include
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, 05.10.2021 03:50
question
Mathematics, 05.10.2021 03:50
question
Health, 05.10.2021 03:50
Questions on the website: 13722367