elements

This is a utility function that is used to instantiate multiple AtomicElement elements at the same time.

Syntax

elements(*args: int | str)

The input for this function consists of either the atomic numbers (int) or symbols (str) of the desired elements. It is also possible to specify a sequence of symbols directly as a single character string. Please refer to the examples below for further clarification.

Examples

Instantiation using atomic numbers.

>>> goupil.elements(1, 8)
(H, O)

Instanciation using atomic symbols.

>>> goupil.elements("H", "O")
(H, O)

Alternatively, elements may be instantiated from a literal sequence of atomic symbols.

>>> goupil.elements("H, O")
(H, O)