what is the difference between methods and functions in Python

theritically, i want to know the differences

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

A function is independent. It does not belong to any class. A method is a function inside a class. It belongs to an object.

Python

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