Created
November 28, 2019 12:38
-
-
Save johnmay/5b8967968aa15715535ced324f32b65e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elements = {'H': 1, 'He': 2, etc} | |
def strtoelem(element): | |
return elemements.get(element, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment