DEV Community

Discussion on: Distinguishing Instance Variables from Class Variables in python

Collapse
 
sagaryadav profile image
sagaryadav

Thank you Ogwuru for this article.
In the example, all the Instance Variables have self. appended to them whereas Class Variables don't. Is it like this or is it a coincidence?

Collapse
 
ogwurujohnson profile image
Johnson Ogwuru

Its not a coincidence