11.2.4.Attributes are values associated with the object.
# Methods are callable functions that perform an operation on the object.
# Attributes and methods of an object can be accessed using the dot '.' syntax:
class test(object):
def printNum(self):
print self.num