language.
Q:3.
class hello:
definit__(self,a='Visit Prutor.ai
website'):
self.a=a
def display(self):
return 0
obj=hello()
print( obj.display() )
Answers
Answered by
0
Answer:
Ok mate.
Explanation:
The def __init__ meathod was wrong i have corrected it below
class hello:
def __init__(self,a='Visit Prutor.aiwebsite'):
self.a=a
def display(self):
return 0
obj=hello()
print( obj.display() )
Similar questions