Private Members in Python 🤔

Rajesh Khadka
Towards Data Science
2 min readAug 15, 2020

--

Photo by Tim Mossholder on Unsplash

If you have prior experience with other programming languages (Java, C#, C++, Kotlin) and have leapt to learn python, you will definitely look for the private members to provide encapsulation as it is a key principle of object-oriented programming. Everyone does that until getting familiar with the “pythonic” way of coding style.

Looking into the few resources over the internet I found quite interesting thoughts…

--

--