There are two kinds of valid attribute names: data attributes and methods. The other kind of instance attribute reference is a method . A method is a function that “belongs to” an object. (In Python, the term method is not unique to class instances: other object types can have methods as well.
Read moreAre methods attributes?
attributes are the features of the objects or the variables used in a class whereas the methods are the operations or activities performed by that object defined as functions in the class .
Read more