human
I am working on the file "Classes-en.ipynb".
The first task is:
Class Static Methods and Variables
Analyzing the Carbon class, the number or electros and protons is always the same, no matter what is the carbon isotope object we are creating. So this data is not object specific but class specific. All the objects created from this Carbon class will have the same values for electros and protons.
To these variables that are related to the class, and that are not defined per object, we call the static variables. They are declared at class level in this way:
Can you write Python program for it?
assistant
#Here is the carbon isotope object we are creating.

class Atom():
    electrons = None
    protons = None

    def __init__(self, neutrons):
        self.neutrons = neutrons
    
    @classmethod
    def get_electrons(cls):
        print(cls)
        return cls.electrons
    
    @classmethod
    def get_protons(cls):
        return cls.protons
    
    def get_neutrons(self):
        return self.neutrons

class Carbon(Atom):
    electrons = 6
    protons = 6

    def __init__(self, neutrons=6):
        self.neutrons = neutrons

carbon = Carbon()
print(Carbon.get_electrons())
print(carbon.get_electrons())