Partie sur les Atomes, il manquait un self
This commit is contained in:
parent
d146d72df6
commit
d4cc9d7a19
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -37,7 +37,7 @@ class Atom(ChemicalElement):
|
|||
self.__neutron_number = neutron_number
|
||||
|
||||
def mass(self):
|
||||
return self.__neutron_number + atomic_number()
|
||||
return self.__neutron_number + self.atomic_number()
|
||||
|
||||
def neutron_number(self):
|
||||
return self.__neutron_number
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue