adplus-dvertising
frame-decoration

Question

What does print(Test.__name__) display (assuming Test is the name of the class) ?

a.

()

b.

Exception is thrown

c.

Test

d.

__main__

Posted under Python

Answer: (c).Test

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does print(Test.__name__) display (assuming Test is the name of the class) ?