theritically, i want to know the differences
A function is defined outside a class and works independently, while a method is defined inside a class and works with objects of that class.
Didn't get the answer. Contact people of Talent-Python directly by clicking here