self is a special keyword in python. its related to classes and instances of objects.
i recommend reading up on object-oriented programming in python to understand what self exactly is, when you need it etc. its a bit tricky to underatand but that’s advanced python basics so to say.
greetings,
thomas
ps: sry i couldnt answer the question itself since this would require to explain the OO-part of python which is out of question (at least for me).
‘self’ is not defined in this case so there’s no reason to use it either.
ThomasEgi says that ‘self’ is a special keyword in Python, but it is not. It is a normal variable.
Okay thanks it doesn’t work yet but it at least does something when i push the up arrow button(an error). Thanks, i’ll try to learn object orientation in Python.
You replied fast by the way