what is the difference between methods and functions in Python

theritically, i want to know the differences

  • Rama
  • 15 Aug
  • 1500 Views
  • 37 Answers
Your Answer

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.

Python

Didn't get the answer.
Contact people of Talent-Python directly by clicking here