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:
Language: English
✅ 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
In this session we:
Created a custom maths.py module
Added functions like:
Imported functions into another Python file
Tested imported functions
Learned how Python executes imported files
Used if __name__ == "__main__" for safe execution
Took user input using input()
Converted values into integers
One of the most important concepts covered in this video:
👉 Modules help us organize code better.
Instead of writing everything in one file:
We also discussed:
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!
This is a learn-together Python series where we:
👍 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