Python - Encapsulation and Data Protection
What will be the output of this code?
class Test:
def __init__(self):
self.__val = 5
t = Test()
print(hasattr(t, '__val'))
print(hasattr(t, '_Test__val'))