loader

Let's learn Python Programming in easy ways.

Explore more

Start your python journey today

267
53
67
89

Today's question

Can you solve this ?
Question.

What is the output of the following code ?

class AttrTest:
    """This is AttrText class doc"""
    def __int__(self):
        """This is display doc """


obj = AttrTest()
print(AttrTest.__doc__)
print(obj.__doc__)

 

Options:

Get the answer and explanation
The Theory :

Python Class

Python is an object oriented programming language. Almost everything in Python is an object. A Class is like a "blueprint" for creating objects or can be called as obj ...

Read more

Python MCQ Quiz

Beginners can practice 300 + Python topic wise MCQ questions which will enhance the command on a particular topic. Experienced pythonistas can start testing their knowledge.

Start now

How To

Code Snippets which helps in your project. Very much desirable for Python Professionals

Start now

Python Fundamental questions with answers

Topic wise fundamental Python questions with answers which will clear your fundamentals and will help you in interviews

Start now

What People Say about PythonEasy

Subscribe to Our Newsletter

Sign Up to our Newsletter to get the latest updates.

TOP