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

function is an independent block of code called by its name, while a method is a function that belongs to an object or class and is called using dot notation.

Python

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