atomic_number

plasmapy.particles.atomic.atomic_number(
element: str | int | integer | Particle | CustomParticle | Quantity,
) int[source]

Return the number of protons in an atom, isotope, or ion.

Parameters:

element (atom-like) – A string representing an element, isotope, or ion; or an instance of the Particle class.

Returns:

The atomic number of an element.

Return type:

int

Raises:

See also

mass_number

Examples

>>> atomic_number("H")
1
>>> atomic_number("tritium")
1
>>> atomic_number("alpha")
2
>>> atomic_number("oganesson")
118