class-private attributes when statement in the body (or in method in the bodyuses an identifier starting with two underscores (but not ending with themsuch as __privatethe python compiler changes it to _classname__private this lets classes to use private names reducing the risk of accidentally duplicating names used elsewhere by convention all identifiers starting with single underscore are meant to be private in the scope that binds them class (object)private print __private attributeerrorclass has no attribute privateprint private