Working with modules and packages in python

Опубликовано: 28 Сентябрь 2024
на канале: coderZworld
67
7

Here we demo how to create python modules and packages using Python.

While developing python application we may have split our code in to multiple files and folders.

A single python file is called as module. A module may contain variables/ functions/ classes.

A folder containing multiple python modules is called as python package. A package contains a python file __init__.py.

If a module need to access a variable / function / class defifed in another module then we have to import that using "import" keyword