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