Method vs Function

Hi team,

What is the difference between a method and a function?

As I am up to the Python List topic here

The append() section, why is it written like this


not like the simple function we have learned so far like print(‘Print Something’)


Hello @jimmywijaya.
Take a look at this forum post, it has many quality answers from multiple users:

The idea in brief is that functions such as append() are methods specific to the list class, and so must be called directly on an instance of a list class (by means of using the dot in front of append).
I hope this helps!