In Python, an Object-Oriented Programming (OOP) language, everything is an object. Objects have attributes, either fields or methods, which can either hold information about the object or define an action the object may perform. Modification, or retrieval which is outside of the scope of this article, of these attributes can be achieved through a few different routes. Every object has a __dict__ attribute which is a dictionary of the names of its attributes and their values. The __dict__ attribute is accessible for class keywords as well, where you will see class attributes and methods defined. …

Samie Azad

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store