print(self name is being awesome "obj=shark("aseem"obj swim(obj be_awesome(outputaseem is plying cricket aseem is being awesome we see that the name we passed to the object is being printed out we defined the __init__ method with the parameter name (along with the self-keywordand defined variable within the method because the constructor method is automatically initializedwe do not need to explicitly call itonly pass the arguments in the parentheses following the class name when we create new instance of the class let' write the above program again using main function class sharkdef __init__(selfname)self name name def swim(self)print(self name is plying cricket "def be_awesome(self)print(self name is being awesome "def main()obj=shark("aseem"obj swim(obj be_awesome(if __name__ ="__main__"main(outputaseem is plying cricket aseem is being awesome page