data hiding is software development technique specifically used in object oriented programming to hide internal object details(data membersit ensures exclusive data access to class members and protects object integrity by preventing unintended or intended changes data hiding is also known as information hiding an objects attributes may or may not be visible outside the class definition we need to name attributes with double underscore( _prefix and those attributes the are not directly visible to outsiders any variable prefix with double underscore is called private variable which is accessible only with class where it is declared examplefor data hiding class counter__secretcount= private variable def count(self)public method self __secretcount+= print("count",self __secretcountaccessible in the same class =counter( count(invoke method count(print("total count", __secretcountcannot access private variable directly outputcount count