theritically, i want to know the differences
In Python, a function is a standalone block of code that performs a task and can be called independently, while a method is a function that is defined inside a class and is called using an object of that class.