theritically, i want to know the differences
function is an independent block of code called by its name, while a method is a function that belongs to an object or class and is called using dot notation.
Didn't get the answer. Contact people of Talent-Python directly by clicking here