Firstly, this is an English language site, and we can only accept and answer questions in that language.
Premièrement, il s'agit d'un site en anglais, et nous ne pouvons accepter et répondre aux questions que dans cette langue.
Secondly, You have a class constructor that takes three parameters, one of them "virtual" in that you don't have to supply it when you call the constructor as the system will do that for you, and two "real" that contain information teh class needs in order to create a new instance:
def __init__(self, nom, age):
self.nom = nom
self.age = age
self
is the "virtual" parameter which is the instance of the class you are creating.
nom
is the name of the person you are working with in the class instance.
age
is their age.
When you call it, you provide the instance specific values:
h1 = Humain("Mohamed", 17)
And the system uses them to fill in the parameter variables inside the constructor, which you then use to store them as a part of the class.
self.nom = nom
self.age = age
When you later call your function
parler
on the class instance, it accesses the class based variables you stored in the constructor and displays that for you.