Python Is A Modular Programing Language
In Python a module is a very simple concept
In this article I introduce the concept of modularity in python.
The Python language strives for simplicity. In python a module is a very simple concept.
Python is a modular programming language.
What does modular mean? Something that is built upon modules is modular.
Today cars, are modular and houses and furniture are becoming increasingly modular
Most modern programming languages are modular with the notable exception of C and C++
According to Wikipedia in their modular programming article
Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality…The scale of the term “module” varies significantly between languages; in Python it is very small-scale and each file is a module, while in Java 9 it is planned to be large-scale, where a module is a collection of packages, which are in turn collections of files.
The definition of a module in Python is elegantly simple.
A module is file containing Python code.
Let’s create our first Python module.
print ("Hello World!")Give it a name such as hello_world and save it. Congratulations you have created your first module.
Open Pyon’s help utility with
help ()
Then type in
modulesPython will generate a large list of modules with useful functions that were installed with Python and in that list you will now find that you have added the module hello_world.
Jim McAulay🍁 says, “The first computer dates back to Adam and Eve. It was an Apple with limited memory, just one byte. And then everything crashed.
42–42
10–09






