Playback starts YouTube’s embedded player (privacy-enhanced mode).
#45 Python Tutorial for Beginners | Modules
ChannelTeluskoDescription from the creator
Check out our courses:
Agentic AI Engineering with Python : go.telusko.com/agentic-ai-python
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com/learn-master
Coupon: TELUSKO10 (10% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : telusko.com/
Udemy Courses:
Java Spring:- go.telusko.com/Udemyjavaspring
Java:- go.telusko.com/udemyteluskojava
Spring: go.telusko.com/udemyteluskospring
Java For Programmers:- go.telusko.com/javaProgrammers
Python : go.telusko.com/udemyteluskopython
Git : go.telusko.com/udemyteluskogit
Docker : go.telusko.com/udemyteluskodocker
Instagram : instagram.com/navinreddyofficial/
Linkedin : in.linkedin.com/in/navinreddy20
WhatsApp : go.telusko.com/whatsapp
Discord : discord.gg/D8hWe9BqfF
In this lecture we will learn:
- What is a module in Python?
- Use of module
- How to create a module in Python?
- Advantages of modules
- Steps to add a separate module
- Different ways to import a module
#1
- Debugging simply means removing bugs.
- The concept of modules is used when instead of writing a big software in one file, we will break it down into small parts.
- A module is a file containing Python definitions and statements. It can consist of variables, functions, classes, etc.
- We have to import a module to use the defined functions in it.
- Module name is the file name with the extension .py.
- Any number of modules can be created and we can also import them into one file.
- Definitions from a module can be imported into other modules or the main module also.
- We have to import the module to use its definitions in the code. When the interpreter encounters an import statement, it imports the module if the module is present in the search path.
- There are some in-built modules present inside python.
- We can also define our modules and use them in code, and they are known as user-defined modules.
#2
Advantages of Modules:-
- If we want to change anything in one module then that change will not reflect in any other module.
- Reuse the same modules in different projects that have similar features.
#3
Steps to add a separate module:-
1. New - Python File
2. Write the name of a new Python File ( name of a module)
#4
Different ways to import a module:-
1. import module_name (Definitions of all functions can be accessed by using module_name)
2. from module_name import function_name ( We can use the definition of a particular function)
3. from module_name import * ( Definition of all functions can be used)
Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist : youtube.com/watch?v=hEgO047GxaQ&t=0s&in…
Python Tutorial in Hindi : youtube.com/watch?v=JNbup20svwU&list=PLk_Jw…
Github :- github.com/navinreddy20/Python-
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Subscribe to our other channel:
Navin Reddy : youtube.com/channel/UCxmk...
Telusko Hindi :
youtube.com/channel/UCitz...
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
telusko.com/contactus
Agentic AI Engineering with Python : go.telusko.com/agentic-ai-python
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com/learn-master
Coupon: TELUSKO10 (10% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : telusko.com/
Udemy Courses:
Java Spring:- go.telusko.com/Udemyjavaspring
Java:- go.telusko.com/udemyteluskojava
Spring: go.telusko.com/udemyteluskospring
Java For Programmers:- go.telusko.com/javaProgrammers
Python : go.telusko.com/udemyteluskopython
Git : go.telusko.com/udemyteluskogit
Docker : go.telusko.com/udemyteluskodocker
Instagram : instagram.com/navinreddyofficial/
Linkedin : in.linkedin.com/in/navinreddy20
WhatsApp : go.telusko.com/whatsapp
Discord : discord.gg/D8hWe9BqfF
In this lecture we will learn:
- What is a module in Python?
- Use of module
- How to create a module in Python?
- Advantages of modules
- Steps to add a separate module
- Different ways to import a module
#1
- Debugging simply means removing bugs.
- The concept of modules is used when instead of writing a big software in one file, we will break it down into small parts.
- A module is a file containing Python definitions and statements. It can consist of variables, functions, classes, etc.
- We have to import a module to use the defined functions in it.
- Module name is the file name with the extension .py.
- Any number of modules can be created and we can also import them into one file.
- Definitions from a module can be imported into other modules or the main module also.
- We have to import the module to use its definitions in the code. When the interpreter encounters an import statement, it imports the module if the module is present in the search path.
- There are some in-built modules present inside python.
- We can also define our modules and use them in code, and they are known as user-defined modules.
#2
Advantages of Modules:-
- If we want to change anything in one module then that change will not reflect in any other module.
- Reuse the same modules in different projects that have similar features.
#3
Steps to add a separate module:-
1. New - Python File
2. Write the name of a new Python File ( name of a module)
#4
Different ways to import a module:-
1. import module_name (Definitions of all functions can be accessed by using module_name)
2. from module_name import function_name ( We can use the definition of a particular function)
3. from module_name import * ( Definition of all functions can be used)
Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist : youtube.com/watch?v=hEgO047GxaQ&t=0s&in…
Python Tutorial in Hindi : youtube.com/watch?v=JNbup20svwU&list=PLk_Jw…
Github :- github.com/navinreddy20/Python-
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Subscribe to our other channel:
Navin Reddy : youtube.com/channel/UCxmk...
Telusko Hindi :
youtube.com/channel/UCitz...
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
telusko.com/contactus
About this tutorial
Telusko published this 7:20 video tutorial on October 26, 2018. It has been watched 716,611 times on YouTube.
- Channel
- Telusko
- Category
- Science & Technology
- Duration
- 7:20
- Published
- October 26, 2018
- Views
- 716,611
- Likes
- 15,797
Tags
Share
This tutorial in other languages
- FR# 45 Python Tutorial pour les débutants | Modules
- ES# 45 Tutorial de Python para principiantes | módulos
- PT# 45 Python Tutorial para Iniciantes | módulos
- IT# 45 Python Tutorial per principianti | moduli
- DE# 45 Python Tutorial für Anfänger | Module
- NL# 45 Python Tutorial voor beginners | modules
- RU# 45 Учебник Python для начинающих | Модули
- PL# 45 Python Tutorial dla początkujących | moduły
- JA初心者のための#45のPythonチュートリアル|モジュール
- AR# 45 بيثون دروس للمبتدئين | وحدات
- HI# शुरुआती 45 पायथन ट्यूटोरियल | मॉड्यूल
- ID# 45 Python Tutorial untuk Pemula | modul