I'm learning the Python programming language, and I've come across certain things I don't fully understand. I'm coming from a C background, but I never went far with that either.
What I'm trying to figure out is:
In a method:
def method(self, blah):
def __init__(?):
....
....
What does self do? what is it meant to be? and is it mandatory?
What does the __init__
method do? why is it necessary? etc
I think they might be oop constructs, but I don't know very much..
Thanks in advance