+ 4

What is the difference between method and function in Python?

python

23rd Dec 2016, 3:24 PM
Ermyas
Ermyas - avatar
2 Answers
+ 5
Function = general function method = an objects function
23rd Dec 2016, 3:48 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
function are codes that are can be reused.. E.G= def reuse(): print('reusing') reuse() >>>reusing
23rd Dec 2016, 6:21 PM
Seth
Seth - avatar