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