1class Monkey(object):
2 def __init__(self, name): # This will done automatically when cmd in 7th line will be executed
3 self.name = name # This is an attribute.
4 def speak(self): # This is a method
5 print("Hello! I am " + self.name)
6
7IronMan = Monkey('TonyStark')
8IronMan.speak() # This will use the function 'speak' defind in class 'Monkey'
9# Created By ....