Python Forum
Pulling any information from a dictionary with a user input
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pulling any information from a dictionary with a user input
#6
There is already a library that contains this information as well as common methods such as mix_by_volume() etc.
pip install periodictable

Output:
>>> import periodictable >>> periodictable.hydrogen H >>> periodictable.hydrogen.mass 1.00794 >>> periodictable.hydrogen.name 'hydrogen' >>> periodictable.hydrogen.number 1 >>> periodictable.nickel.number 28 >>> periodictable.nickel.mass 58.6934
although i am not sure if they have a search method based on name/number/isotope, etc. I would assume so. You would have to look more into it.
Recommended Tutorials:
Reply


Messages In This Thread
RE: Pulling any information from a dictionary with a user input - by metulburr - Nov-21-2017, 07:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  User Input to mySQL database newbie1 3 4,326 Aug-26-2020, 10:42 AM
Last Post: newbie1
  Download images generated by user input one_of_us 0 2,561 Mar-26-2019, 07:58 AM
Last Post: one_of_us
  Flask: Cookies for Saving User Input ? jomonetta 2 3,613 Nov-03-2018, 10:47 AM
Last Post: j.crater
  Can not get information from User o0TarZan0o 5 5,126 Feb-16-2017, 06:27 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020