What is getattr() used for?
To check if an attribute exists or not
To delete an attribute
To access an attribute
To set an attribute
getattr() used to access the attribute of the object
Comment here: