"platforms/vscode:/vscode.git/clone" did not exist on "bf8db55f4a5432d0e59867895a5d0ea1873301cd"
Commit 51b7f9e2 authored by Robert McGibbon's avatar Robert McGibbon
Browse files

Merge master

parents 85bfd73c be0387b6
This diff is collapsed.
...@@ -58,11 +58,16 @@ class Element(object): ...@@ -58,11 +58,16 @@ class Element(object):
def __init__(self, number, name, symbol, mass): def __init__(self, number, name, symbol, mass):
"""Create a new element """Create a new element
Parameters: Parameters
number (int) The atomic number of the element ----------
name (string) The name of the element number : int
symbol (string) The chemical symbol of the element The atomic number of the element
mass (float) The atomic mass of the element name : string
The name of the element
symbol : string
The chemical symbol of the element
mass : float
The atomic mass of the element
""" """
## The atomic number of the element ## The atomic number of the element
self._atomic_number = number self._atomic_number = number
...@@ -115,7 +120,7 @@ class Element(object): ...@@ -115,7 +120,7 @@ class Element(object):
Returns Returns
------- -------
element : Element Element
The element whose atomic mass is closest to the input mass The element whose atomic mass is closest to the input mass
""" """
# Assume masses are in daltons if they are not units # Assume masses are in daltons if they are not units
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment