Saved Bookmarks
| 1. |
What does print(Test.__name__) display (assuming Test is the name of the class)?(a) ()(b) Exception is thrown(c) Test(d) __main__ |
|
Answer» Right answer is (c) Test Easy explanation - __name__ built-in class attribute is used to display the class name. |
|