why in this lesson in the lesson part the class variable is preceded by
self when used in
return part (
self.kms_in_a_mile), but in the exercise part it is preceded by the class name (
Circle.pi), in the method part?
To be honest, when I was doing the exercise I just wrote the class variable name (
pi) and only after receiving an error I fixed it, but the point is that I still don’t quite understand.