Difference between function and method in Python. Is it just self?
Methods are functions in objects and take care of their state via the self parameter. Regular functions can live anywhere in your code. They process input and return output. This video shows the difference between functions and methods.
Written by Loek van den Ouweland on 2023-01-25.
Questions regarding this artice? You can send them to the address below.