#45 Python Tutorial for Beginners | Modules

Описание к видео #45 Python Tutorial for Beginners | Modules

Check out our courses:

Spring Framework in 8 Full Day Course Live: https://go.telusko.com/SPRING8DAYS2
Coupon: TELUSKO10 (10% Discount)

Complete Java Developer Course Batch-3: https://go.telusko.com/completebatch3
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

Spring: https://go.telusko.com/udemyteluskosp...
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopy...
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodo...

For More Queries WhatsApp or Call on : +919008963671

website : https://courses.telusko.com/

Instagram :   / navinreddyofficial  
Linkedin :   / navinreddy20  
TELUSKO Android App : https://bit.ly/TeluskoApp
Discord :   / discord  

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 :    • #1 Python Tutorial for Beginners | In...  
Python Tutorial in Hindi :    • #1 Python Tutorial | Introduction | I...  

Github :- https://github.com/navinreddy20/Python-

Java and Spring Framework For beginners with Spring Boot : - http://bit.ly/3LDMj8D

Java Tutorial for Beginners (2023) :- http://bit.ly/3yARVbN

Editing Monitors :
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
https://amzn.to/2OUP21a.

Subscribe to our other channel:
Navin Reddy : https://www.youtube.com/channel/UCxmk...
Telusko Hindi :
https://www.youtube.com/channel/UCitz...

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
http://www.telusko.com/contactus

Комментарии

Информация по комментариям в разработке