0

How would the attribute __a of class b be accessed outside the class?

12th Jun 2020, 6:51 AM
Shivangi Agarwal
4 Respuestas
+ 3
_b__a
12th Jun 2020, 9:14 AM
Avinesh
Avinesh - avatar
+ 2
class B: __a = 10 def __init__(self): pass b = B() print(b._B__a)
12th Jun 2020, 8:30 AM
Avinesh
Avinesh - avatar
0
Actually I am stuck in this question while my python tutorial
12th Jun 2020, 8:48 AM
Shivangi Agarwal
0
I need just a single line answer that it accepts
12th Jun 2020, 8:49 AM
Shivangi Agarwal