class A: a = 1 class B(A): a = 2 print(B.a)del B.aprint(B.a)A.a = 3print(B.a)
Standard input is empty
2 1 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!