Is methods and modules is one and the same thing in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is methods and modules is one and the same thing in python?

25th Jun 2020, 1:51 PM
Sanskruti
Sanskruti - avatar
2 Answers
+ 1
Functions associated with classes or instance of class are generally called methods. Modules are nothing but Python file which has classes and functions just like any other Python program. It might implement a certain functionality that you would like to carry to a different file by importing that module.
25th Jun 2020, 2:03 PM
Avinesh
Avinesh - avatar
0
Okay 👍 Got it.Granger
25th Jun 2020, 2:02 PM
Sanskruti
Sanskruti - avatar