Advanced Placement (AP), 30.12.2020 02:10 Clivensp5
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,
Answers: 1
Advanced Placement (AP), 23.06.2019 06:30
Ihave made a dive then stayed on the surface for a while. after this surface interval my pressure group is k. what is the maximum amount of bottom time available when doing a repetitive to 17/56 feet
Answers: 3
Advanced Placement (AP), 23.06.2019 13:00
Quickly ill give anyone brainliest plus free points if answered as a good rule of thumb, you should take a 15-minute break every while driving. a. 1 hour b. 2 hours c. 3 hours d. 4 hours
Answers: 2
Advanced Placement (AP), 25.06.2019 18:00
Which best explains why the number of states in the world increased significantly between 1985 and 1995? the map of southeast asia was redrawn, and new countries were formed. new states were formed when the soviet union collapsed. many african states received independence from their colonizers. communist countries seeking to spread their influence created new satellite states. civil wars in central america fueled the creation of new states.
Answers: 1
Create a new program in Repl. it called "Lists." Your goal for this program is to create
sections o...
Biology, 24.02.2021 22:30
Spanish, 24.02.2021 22:30
Mathematics, 24.02.2021 22:30
Mathematics, 24.02.2021 22:30
English, 24.02.2021 22:30
English, 24.02.2021 22:30
Mathematics, 24.02.2021 22:30
Chemistry, 24.02.2021 22:30
Mathematics, 24.02.2021 22:30
Chemistry, 24.02.2021 22:30