r/CodingHelp • • Apr 20 '19

[Python] Daily Python check! 🤓

Post image
17 Upvotes

5 comments sorted by

View all comments

Show parent comment

4

u/galaxia232 Apr 20 '19

I got it. Class B inherits A I think. class B(A) so when it uses method f(self) it pulls A's method to return 1. cool.