#45 Python Tutorial for Beginners | Modules

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

For More Queries WhatsApp or Call on : +919008963671

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

Editing Monitors :

Subscribe to our other channel:
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

Watching this one day before exam....😜

tanishkamaheshwari
Автор

Help is a very expensive gift so don't expect it from anyone because very few people rich by heart rest other only talk.
Sir you are one of best passionate teacher & best youtuber.
Sir you are rich by heart & your help is a very expensive gift that you are delivered to me & (us) subscribers.
Your help(expensive gift is very valuable for me.) Keep doing your great work.
I am always support naveen sir. your great work is invaluable.
❤ from Abhishek Sethi Jaipur rajasthan.

abhisheksethi.
Автор

Aside from your way of teaching, I would like to take out a moment and appreciate the immense effort you put in all your videos.
Calling your work "great" would be an understatement.

Krimsonpride
Автор

you teach people in single playlist what college profs are unable to teach in 4yrs that too for free.
God Bless you

solidstatedevices
Автор

When I wrote this Code only God and I understood what it did...
And Now Only God Knows ❤️❤️❤️❤️❤️

Amit_Kumar_
Автор

Seriously the way you teach us, it really help me to understand the concepts in depth and learn to code more efficiently. I appreciate your contribution.

Dhananjoybhatta
Автор

Thanks you so much for these videos. Though this was a common topic and you could have easily assumed that there is no need to explain this and people should already know these small small things.
But I am still looking for all such tiny important concepts. When you don't have a proper coding background then even such small things create confusion in life
Thanks for this. Thank you so much sir. You are like god for many of us here.. thanks

Shilpi_Joshi
Автор

You are my best teacher for python. I am working on network automation and you make it very simple for me to use methods. Really appreciate your work.

AhmedAli-dzhy
Автор

Sir Navin. a dad never and will never call himself a daddy but children and other people of a young age will call him daddy for respect; comparingly, you never know how much of use you are to us, continue raising our scores and never will u lack some goodies for your trainees.not what you drive that matters but what drives and inside someone, and u have proved to be that unique one that is driven by passion and stunning success of those who will to become excellent coders and solve problems through coding. SALUTE YOU

danielkamau
Автор

Sir please do not take so much time between videos, a day without you is like a monsoon without rain😊😊😊😊we love you sir

pavanjain
Автор

This topic also got over and how easily I understood the concept. Thank you once again Telusko for providing this information to all of us.
Great video and very well explained.

asishraz
Автор

I have never seen better educator then you, thank you so much!

overing
Автор

No doubt this man is best at teaching 🙏....just in 5-6 minutes he can solve your all problems in his video 😍

suryakantasahoo
Автор

A very good tutor with an amazing skill of explanations....

ujjwalkumar
Автор

believe me dude I have watched at least 5 videos in YouTube about modules..This man teaching is awesome. I wish he was my tutor!

shuvosaha
Автор

You, my man, are doing a great service !

subhadeepreaditassubhodeep
Автор

your videos are being way better at explaining than my own programming teacher, lol. Congratulations for the amazing work!

lyre
Автор

Thank you for the short and sweet tutorials the teach without fluff!

sueholder
Автор

these videos are really helpful. Keep up the good work! the way you explain the code is really awesome. Its quite interesting!!!

beginnerInvestor
Автор

Your way of explaining is so amazing! Thank you very much for this lesson, subscribed!

bnwguitarist