You could take a look at couple examples I've prepared about properties in python. Share Make improvements to this solution Observe During this code we have "hidden" attribute password by utilizing @property which triggers AttributeError assertion if you try and access it specifically, even though we made use of @property.setter https://luxuryprojectsgurugram.in/luxury-projects-gurugram-the-future-of-upscale-living-in-indias-fastest-growing-city/