Reiter

In order to protect attributes, we can "encapsulate" them in our classes, to shield them from the outside.

If we want to still be able to access them, we can use "getter" and "setter" methods to create a dedicated path to them.

This is a standard feature of Object Oriented Programming and not at all specific to python, so there are plenty of explanations to be found if you want to learn more.