+ 4

Difference between functions and methods in python ?

what is the difference between functions and methods in python ?

12th Apr 2018, 2:43 PM
Vaibhav Singh Sikarwar
Vaibhav Singh Sikarwar - avatar
2 Answers
+ 3
Nothing really. Methods are just functions that belong to a class.
12th Apr 2018, 7:04 PM
Paul Grasser
Paul Grasser - avatar
+ 2
Methods are the same as functions but methods are inside classes functions are not, it doesn’t really matter either
12th Apr 2018, 2:59 PM
TurtleShell
TurtleShell - avatar