School of Programming and Software Development
sop-webfb-101: Python Fundamentals
This is a beginner's introduction to Python, and in this lesson, we look at what a module is and how to create and use our module.
In Python, a user-defined module is simply a .py file you create that contains Python code—such as functions, classes, and variables—that you can reuse in other programs.
It allows you to organize your code into separate, logical files, improving readability, maintainability, and reusability.
You can import a user-defined module into another script using import module_name or from module_name import ..., as long as it’s in the same directory or in Python’s search path.
On this page of the site you can watch the video online Week 6 - Lesson 1:Python user-defined Modules with a duration of hours minute second in good quality, which was uploaded by the user School of Programming and Software Development 11 August 2025, share the link with friends and acquaintances, this video has already been watched 99 times on youtube and it was liked by 7 viewers. Enjoy your viewing!