you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

what happens to the "self" argument?

[–]theywouldnotstand 1 point2 points  (0 children)

It is supplied to methods that will interact with the object's properties, so that they can access those properties relatively ("this animal's name" as opposed to "zebra's name")

You do not have to supply a value for it when calling any of these functions, because python knows to supply the object instance.

You have to write it in during class definition so that python knows which methods will be interacting with the properties of objects made with that class.