#Learn #Python: Modules & Packages #Tutorial | #Beginner #Friendly
Learn Python Basics Together π | Day 5
Welcome back to our beginner-friendly Python learning series!
In today's video, we learn:
β
Modules and Packages in Python
β
Importing Functions from Another File
β
Python Input and Output Basics
This video is suitable for:
- 8th Standard
- 9th Standard
- 10th Standard
- 11th Standard
- 12th Standard
- CBSE Board Students
Language: English
Topics Covered
β
What are Modules in Python
β
Creating a Custom Python Module
β
Importing Python Files
β
Using Functions from Another File
β
import vs from import
β
Importing Specific Functions
β
Importing All Functions using *
β
Custom Import Names using as
β
Understanding __main__
β
Avoiding Naming Conflicts
β
Python Input Function
β
Typecasting Input Values
What We Practiced
In this session we:
Created a custom
maths.pymoduleAdded functions like:
- Addition
- Subtraction
- Division
- Multiplication
Imported functions into another Python file
Tested imported functions
Learned how Python executes imported files
Used
if __name__ == "__main__"for safe executionTook user input using
input()Converted values into integers
Important Learning
One of the most important concepts covered in this video:
π Modules help us organize code better.
Instead of writing everything in one file:
- We can split code into reusable files
- Import only what we need
- Keep projects clean and manageable
We also discussed:
- Why writing code manually matters
- Why experimenting with code helps learning
- How naming conflicts can happen in imports
Exercise for You
Try this yourself π
β
Create your own module
β
Add a remainder function (%)
β
Import it into another file
β
Try creating naming conflicts and observe what happens
Share your results in the comments section!
Tools Used
- Python
- VS Code
- Python Extensions
About This Series
This is a learn-together Python series where we:
- Learn Python step by step
- Practice coding together
- Make mistakes and fix them
- Build strong programming fundamentals
π Like the video
π Subscribe for upcoming Python tutorials
π Turn on notifications for the next video
#Python #LearnPython #PythonModules #PythonPackages #PythonTutorial #PythonBeginners #Programming #Coding #VSCode #PythonForStudents
βΆοΈ 3Speak