were the function's and method's in Python are same ???
Answers
Answer:
Key differences between method and function in python
Unlike a function, methods are called on an object. ... i.e. “my_method” on the object “cat” whereas the function “sum” is called without any object. Also, because the method is called on an object, it can access that data within it.
Explanation:
Key differences between method and function in python
Key differences between method and function in pythonUnlike a function, methods are called on an object. ... i.e. “my_method” on the object “cat” whereas the function “sum” is called without any object. Also, because the method is called on an object, it can access that data within it.....
I HOPE IT HELPS U DUDE...
PLZZ MARK IT AS BRAINLIST...
PLZZ FOLLOW ME...
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️