Post

@Python_Dv Answer: A) 101
Explanation:
__id is name-mangled by Python to _Test__id because it starts with double underscores. Inside __init__, self.__id = 101 sets that mangled attribute. The constructor argument 102 is ignored, so printing test.__id resolves to 101.
English

@Python_Dv D. Error
Because the Test class can’t access to __id and if we want to access to the value it must be print(test._Test__id)
English









