Mary Mary - 20 days ago 5
Python Question

I cannot find my mistake in python

I am trying to write a problem with classes in python. I am a beginner. I cannot realized where the problem is. When I run the code I received this error:

File "D:/Facultate/Python/Bibliotek_Classe/Classe.py", line 43, in add_client
self.client_list.append(client)
AttributeError: 'CrudOperationOnClient' object has no attribute 'client_list'


And this is the class where it is supposed to be a mistake. Thank you very much!

this is the code

Answer

write def __init__(self): instead of __int__(self):

Comments