element_name

plasmapy.atomic.element_name(element: plasmapy.atomic.particle_class.Particle) → str

Return the name of an element.

Parameters

argument (str, int, or Particle) – A str representing an element, isotope, or ion or an int representing an atomic number

Returns

name – The name of the element.

Return type

str

Raises
  • InvalidElementError – If the argument is a valid particle but not a valid element.

  • InvalidParticleError – If the argument does not correspond to a valid particle.

  • TypeError – If the argument is not a str or int.

Examples

>>> element_name("H")
'hydrogen'
>>> element_name("T")
'hydrogen'
>>> element_name("alpha")
'helium'
>>> element_name(42)
'molybdenum'
>>> element_name("C-12")
'carbon'