Is a python program and a python module different? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is a python program and a python module different?

13th Aug 2020, 3:55 AM
Model Pilot
Model Pilot - avatar
2 Answers
+ 5
Google definition Definition - Python Module A module is a Python object with arbitrarily named attributes that you can bind and reference. ... Simply, a module is a file consisting of Python code. A module can define functions, classes and variables. A module can also include runnable code. Essentially, you can import and use modules within your program
13th Aug 2020, 4:03 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Yes Python program/code => What you have made! Python module => What you use sometimes using the import statement! You can import other codes too, in the same directory! However, this won't work on SoloLearn
13th Aug 2020, 3:57 AM
Namit Jain
Namit Jain - avatar