0

basics!!

please tell me the difference between the functions and methods in python?? I am still confused...

22nd Nov 2019, 5:33 AM
Ash Shas
1 Answer
+ 3
Methods are functions you write inside a class. In other languages, such as C++, methods are also referred to as member functions. So, unless a function is written as a member of a class, it usually be referred to as just function. Hth, cmiiw
22nd Nov 2019, 5:40 AM
Ipang