What is the difference between modules , packages and libraries in python? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What is the difference between modules , packages and libraries in python?

8th Aug 2019, 6:32 PM
Sarang Joshi
Sarang Joshi - avatar
2 Respuestas
+ 5
Module is a file which contains python functions , global variables etc. It is nothing but .py file which has python executable code / statement. Package is namespace which contains multiple package/modules. Library It is collection of various packages. There is no difference between package and python library conceptually.
8th Aug 2019, 11:04 PM
Waleed Ahmed
Waleed Ahmed - avatar
+ 3
Module is a set of functions, globals and classes that you can import. Package or library is a set of modules.
8th Aug 2019, 6:52 PM
Qermon
Qermon - avatar