PYTHON 3


PART 1


Given the following list of the first 20 elements on the periodic table of elements:


elements20 = ['Hydrogen', 'Helium', 'Lithium', 'Beryllium', 'Boron', 'Carbon', 'Nitrogen', 'Oxygen', 'Fluorine', 'Neon', 'Sodium', 'Magnesium', 'Aluminum', 'Silicon', 'Phosphorus', 'Sulfur', 'Chlorine', 'Argon', 'Potassium', 'Calcium']


Print the list

Go through (traverse) the list item by item and do the following:

Print the atomic number - element name for any element that starts with an 'H' or an 'N'. For example 1 - Hydrogen would be printed for the first element.

(Hint: How does the index number compare to the atomic number?)

Print the list in alphabetical order (ascending)

Print the list in reverse alphabetical order (descending)

Go through (traverse) the list item by item and do the following: (HINT: Be careful of the order you go!)

Remove any elements that start with the letter 'C'

Print the resulting list with the 3 'C' elements removed.

PART 2


For this little program you will create a list of numbers and then perform some actions on it.


Ask the user to enter 2 digit positive numbers repeatedly until they enter a -1. Make sure that they only enter positive 2-digit numbers.

Display the list of numbers, count, total, maximum, minimum and average of the numbers after the user enters -1.

Display the sorted list of numbers.

Define and call a function that will display the median of the list of numbers. It will take the list as a parameter and return the median value. (You will need to consider if the number of numbers is odd or even.)

The output should look something like this:

PYTHON 3PART 1Given The Following List Of The First 20 Elements On The Periodic Table Of Elements:elements20

Answers

Answer 1

Answer:

c

Explanation:

Answer 2

agree i go with c btw i took test


Related Questions

If I want to Save a file, what Menu do I go to? Question 1 options: Help View Insert Home

Answers

Answer:

ANS:- crtl s

Explanation:

crtl s is use to save a file in computer

Answer:

To save a file, you can click the Save icon in the top-left corner, click File>Save , or use the shortcut Ctrl+S (Command+S for Macs). Click the save icon (above) or File>New (below).

Other Questions
Calculate the potential V(r) for r < r. (Hint the net potential is the sum of the potentials due to the individual spheres.) Express your answer in terms of the given quantities and appropriate constants. Submit My Answers Give Up Correct Part B Calculate the potential V(r) for Ta < r < Express your answer in terms of the given quantities and appropriate constants. Submit Mv Answers Give Up Correct Part C Calculate the potential V(r) for rTb. Express your answer in terms of the given quantities and appropriate constants. V(r) 0 The current decline of amphibian populations worldwide has been linked to a ________ fungus. URGENT! PLEASE HELP :)THANK YOU!!! You, your family, or your ancestors may have decided to migrate to a new part of the world, eventually settling where you live today. What do you believe were two important factors that encouraged people to settle and build a civilization in the place where you live today? The ratio of yellow marbles to purple marbles was 13 to 4. If there were 102 marbles in the bag, how many were yellow marbles? In marketing research, it is always preferable to take a census rather than a sample of the population under study.a. trueb. false In this part of his speech, president bush is trying to his audience. when neuron activity increases in a certain region of the brain, this also increases everything except chapter 14 g medical imaging is used when a patient ingests a radioactive emitter, called a tracer, so a doctor can view an internal system. which tracer emission will penetrate through the body? What kind of mutation might result in a the formation of the codon tga along the coding strand of dna?. Identifying and attracting gifted people are skills that superbosses possess in order to build high performance organizations. They do this by employing _____ in order to surround themselves with unusually gifted people. Multiple Choice O corwentional hiring strategies the usual interviewing approach O standard hiring practices O unconventional hiring tactics Can a triangle be formed with side lengths 15, 7, and 6? Explain Which of the following is equivalent to 5(x+6)-6(3x+3)=10 how many elements does the vector declaration create? vector scores(10); // vector declaration scores.at(0) -8y - 1 = -8yQuadratic equation Read the excerpt from the interview with E.Y. (Yip) Harburg.When I lost my possessions, I found my creativity. I felt I was being born for the first time. So for me the world became beautiful.With the Crash, I realized that the greatest fantasy of all was business. The only realistic way of making a living was versifying. Living off your imagination.Based on the excerpt, which best describes Harburgs view of the Great Depression? 10 points and brainliest.two people need to answer or i won't be able to give brainliestFifteen students completed 80 puzzles. How many puzzles would 1 student complete? Round the answer to the nearest tenth.1.60.25.315.0 the nurse is caring for four clients with diarrhea. when reviewing the client's chart, the nurse would contact the health care provider if which client has a prescription for an antidiarrheal agent? Write an equation of the line that passes through $\left(1,2\right)$ and is parallel to the line $y=-5x+4$. cells synthesize a variety of complex molecules to include proteins, nucleic acids, lipids and carbohydrates. a large majority of the molecules that cells make are proteins. which three organelles are most involved in synthesizing proteins?