Is is correct to say that difference between a function and method is that method has mandatory argument that is used to call it while a program function does not need such an argument?
If we had to list all differences between the two , what would they be?
The role of argument self for a method - I do not understand completely - why is it mandatory - how does it help a method or the class or to say, python programming? Why has it been made necessary? What if the language was made so that this argument wasn’t compulsory - would that have resulted in some issues?
This last question is to understand the python logic deeper.
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!