get protected attributes with python inspect code example
Example: python protected attributes
class example:
def __init__(self):
self._variable1='protected variale'
self.__variable2='private variable'
self.variable3='public variable'