Sitemap

Modules in python

Jul 26, 2026

--

Build in modules

import math

print(math.pi)

print(math.sqrt(16))

Get Arunram’s stories in your inbox

Join Medium for free to get updates from this writer.

calling one module from another module in same directory

Press enter or click to view image in full size

using modules from other folder using sys.path.apend

Press enter or click to view image in full size

creating package in new folder and calling package .

Press enter or click to view image in full size

__init__.py is to instruct the compiler that it is a package.

here you can control what should be called

Command line arguments:

--

--