Question #32

What is the difference between a function and a method?

Methods and functions are similar in nature. However, a method is called on an object, but not a function. A function cannot (or at least shouldn't) modify an object attribute. (data-flair.training/blogs/python-method-and-function)


Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅