This repository contains an index of the Periodic Table of the Elements, from hydrogen to oganesson. It gives the atomic number, average atomic mass, and element symbol. More information planned for a later release.
This program requires the following:
- Python 3.7 or higher
- Python's sys module (should be built in)
This program takes a user's command line argument for the requested element using sys.argv. It takes this, saves it as a variable called search
, and then checks through a list of identifiers for the various elements to call up the right entry. Then the entry is returned using the print function. Error messages are in place if an improper identifier is given.
I create programs in a variety of languages, from Python to JavaScript to CSS and more. I'm on GitHub: @peternielsen112 and also Replit.com by the same username. Please email any problems or suggestions to me at dirigo112@gmail.com.