Question: Write a python program that prompts the user for six elements and their atomic numbers and stores them in a list. Each element and weight

Write a python program that prompts the user for six elements and their atomic numbers and stores them in a list. Each element and weight pair should also be a list. After the values have been entered, print the list as it entered. Then print the first two characters from the element names (the first character capitalized and the second in lower case) along with the atomic number, starting with the element with the lowest atomic number. You must check that the user enters at least two characters for the element name.

Sample dialog:

Enter the element name: Neon

Enter the atomic number: 10

Enter the element name: argon

Enter the atomic number: 18

Enter the element name: lead

Enter the atomic number: 82

Enter the element name: Radon

Enter the atomic number: 86

Enter the element name: Zinc

Enter the atomic number: 30

Enter the element name: Aurum

Enter the atomic number: 79

[['Neon', 10], ['argon', 18], ['lead', 82], ['Radon', 86], ['Zinc', 30], ['Gold', 79]]

Ne 10

Ar 18

Zi 30

Au 79

Le 82

Ra 86

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!