Creating classes and objects
>>>
class AClass
:
...
def amethod(self):
...
print ‘Hi there!’
...
>>>
a = AClass()
>>> a.amethod()
Hi there!