+ 4
What is the difference between functions and methods in python?
7 Answers
+ 4
Hello body!
In fact both of them are function.
But the functions which are in the Class (Object) named method.
+ 2
Well it could be, if you check out other programing languages you can find languages which Print function is a method of some class.
+ 2
SHATRUGHAN Check out this code to understand better đŽhttps://code.sololearn.com/cscy4Vhx5dl5/?ref=app
+ 1
Its just terminology between programs. In C/C++ we call them function. For python, they are method
0
why print function not kept in some class??
0
method is the name/terminology to be used in context of OOP. Function is the name/terminology to be used outside of OOP context. Ideally, both perform the same execution albeit the difference in context.
0
method is something belongs to object