Python - Encapsulation and Data Protection
What will be the output of this code?
class A:
def __init__(self):
self.__x = 10
a = A()
print(hasattr(a, '__x'))
print(hasattr(a, '_A__x'))