Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get a list of class attributes in python?



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

Post New Answer

More Python Interview Questions

What is the sleeping time of giraffe?

1 Answers  


How do I download a file over http using python?

0 Answers  


What is the use of sessions in Django?

2 Answers  


Is python in demand?

1 Answers  


How do you use n in python?

1 Answers  


What is the difference between `deepcopy` and `shallow copy`?

5 Answers  


Which software is used for python?

1 Answers  


What is a pure function python?

1 Answers  


How do you get the last value in a list or a tuple?

1 Answers  


Where is python best used?

1 Answers  


Do you know in python what are iterators?

1 Answers  


What is the purpose of setup py?

1 Answers  


Categories