avatarJim McAulay🍁 I'm nobody. Are you a nobody too?
# Summary

Python is a programming language that emphasizes modularity, allowing functionality to be divided into reusable and independent modules, with each file serving as a module.

# Abstract

The article discusses the concept of modularity in Python, explaining that a module is a fundamental component in Python programming. It highlights that Python's simplicity is enhanced by its modular nature, where a module is simply a file containing Python code. The author guides readers through creating their first Python module, demonstrating the ease of adding new functionalities to Python's extensive library of modules. The article also references the broader context of modularity in modern programming languages and its prevalence in other industries, such as automotive and furniture design.

# Opinions

- The author suggests that Python's approach to modularity is elegantly simple compared to other programming languages.
-

Python Is A Modular Programing Language

In Python a module is a very simple concept

Photo by Arthur Mazi on Unsplash

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

modules

Python 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

Python
Technology
Programming For Beginners
Jim Mcaulay
Illumination
Recommended from ReadMedium