So, I was trying myself with classes the first time and I stumbled upon following error:
Bücher-Tutorials.py:, line 30, in Mensch:
_init_(name="John", groesse="175cm", passwort="A", age="2")
TypeError: _init_() missing 1 required positional argument: 'self'
Here is a snippet of the snippet of the source code:
{`class Mensch:
def _init_(self, name, age, groesse, passwort):
self.name = name
self.age = age
self.groesse = groesse
self.passwort = passwort
def gruessen(self):
print("Hallo,ich heiße" + name)
gruessen(self)
_init_(name="John", self="ad", groesse="175cm", passwort="A",age="2")```}
I tried creating an argument called self that went about ike this:
self.self = self,but it didn't work. Can anyone help me,I would be really thankful thank you,bye! Edit:It worked,thank you!