theritically, i want to know the differences
The main difference is where they live. Function: A standalone block of code. You call it by its name. Example: print("Hello") Method: A function that "belongs" to an object. You call it using a dot. Example: my_list.append(5) (The append method belongs to the list object).