Skip to content

Instantly share code, notes, and snippets.

@andycasey
Created July 27, 2012 18:58
Show Gist options
  • Save andycasey/3189820 to your computer and use it in GitHub Desktop.
Save andycasey/3189820 to your computer and use it in GitHub Desktop.
periodic_table = """H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Lr Rf Db Sg Bh Hs Mt Ds Rg Cn UUt"""
lanthanoids = "La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb"
actinoids = "Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No"
periodic_table = periodic_table.replace(' Ba ', ' Ba ' + lanthanoids + ' ').replace(' Ra ', ' Ra ' + actinoids + ' ').split()
del actinoids, lanthanoids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment