What is hasattr() used for?
To check if an attribute exists or not
To delete an attribute
To access an attribute
To set an attribute
hasattr() used to check if an attribute exists or not on a particular instance
Comment here: