Encapsulation allows to hide variables by prefixing two underscores for example __myvariable. It makes the variable private to the class. Any instance of the class cannot access the variable.
#encapsulation #objectorientedprogramming #pythontutorial #python