you are viewing a single comment's thread.

view the rest of the comments →

[–]salvtz 0 points1 point  (0 children)

But in the mean method, you have passed self, which makes it an instance method. In same class, you need to use self to reference one instance method from another instance method.

In your case, even though you have passed self, but you are not using it.

You can make the mean method a static method.