How to get a list of class attributes in python?
Answer / Manisha
To get a list of all the attributes of a class, you can use the built-in `dir()` function. To get only the attributes of the instances, you can access them using the dot notation.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the sleeping time of giraffe?
How do I download a file over http using python?
What is the use of sessions in Django?
Is python in demand?
How do you use n in python?
What is the difference between `deepcopy` and `shallow copy`?
Which software is used for python?
What is a pure function python?
How do you get the last value in a list or a tuple?
Where is python best used?
Do you know in python what are iterators?
What is the purpose of setup py?