davidswafforddd478
30.11.2020 •
Computers and Technology
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:
A loop that will output every other name in the names list.
A loop that will output only the positive numbers in the numbers list.
A loop that will output the sum of all the values in the numbers list.
A loop that will output only the numbers that are odd.
A loop that will output only the names that come before "Thor" in the alphabet from the names list.
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.
Solved
Show answers
More tips
- C Computers and Internet Dynamically Assigned IP Address: What Is It and How Does It Work?...
- H Health and Medicine Angina: Causes, Symptoms, and Treatment...
- C Computers and Internet How to Learn to Type Fast?...
- F Food and Cooking Delight for Gourmets: How to Prepare Liver Pate...
- S Style and Beauty How to braid friendship bracelets?...
- H Health and Medicine Mercury Thermometer Danger: What to do when a thermometer breaks?...
- F Food and Cooking Which Calamari Salad is the Most Delicious?...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- F Food and Cooking The Most Delicious and Simple Fish in Batter Recipe...
- H Health and Medicine What is Autism? Understanding the Basics of This Neurodevelopmental Disorder...
Answers on questions: Computers and Technology
- B Business Mike has spent $600 purchasing and repairing an old fishing boat, which he expects to sell for $800. Mike discovers, that, in addition to the $600 he has already...
- M Mathematics Help please! 15 points!...
- M Mathematics Emily is going to bake a cake. The recipe calls for 6 cups flour, 4 cups sugar and 2 cups milk. If her cake pan only fits 10 cups of total ingredients how much flour...
Ответ:
If i could time travel, i would go back to before coronavirus times in the summer to enjoy myself more and be grateful before everything happens.
Explanation: