+ 1

Define Method and function .. and what's the difference between them

23rd Mar 2018, 12:42 PM
Ayad Saadi Ahmed
2 Réponses
+ 2
In Python all it's object, and method is a method of class from which the object follow. Function can work different class object.
23rd Mar 2018, 3:11 PM
Viacheslav Prykhodko
Viacheslav Prykhodko - avatar
+ 2
Function: A block of code that does stuff, that can optionally return a potentially useful value. Method: A function in a class.
25th Mar 2018, 3:09 AM
LunarCoffee
LunarCoffee - avatar