Computer Science, asked by anjan2001, 11 months ago

were the function's and method's in Python are same ???​

Answers

Answered by XxitzArnavxX
2

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.

Answered by Nandzzz
1

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...

❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

Similar questions