class H:
def __init__(self,atom_weight=1, serial_number=1, name = 'Водород'):
self.atom_weight = atom_weight
self.serial_number = atom_weight
self.name = atom_weight
def weight(self):
print("Малярная масса равна {}".format(self.atom_weight))
h = H()
h.weight()