Importing Module in Python | Module in Python | Python Modules | Python Tutorial in Hindi
HTML-код
- Опубликовано: 15 окт 2024
- Importing Module in Python | Module in Python | Python Modules | Python Tutorial in Hindi
This video is part of python tutorial for beginners in hindi.In this video, I have explained about modules in python.In this video,you will learn how to import module in python. There are different ways of importing module in python.Python provides lot of inbuilt modules. We just have to import those modules.
queries covered:-
1) importing module in python
2) module in python
3) python modules
4) python tutorial for beginners in hindi
5) How to create module in python
Hello guys,welcome to codeyug to build your computer science skills.Here,you will learn programming tutorials and computer science tutorials from basics to advanced.
source code :-
Thanks for watching this video
Subscribe codeyug for more programming tutorials.
bit.ly/3h3Bv0c
About this channel:-
This channel provides free tutorials on programming,coding,web development.There are programming tutorials which covers from basics to advanced absolutely in hindi.
Our social links:-
you tube:- bit.ly/3h3Bv0c
instagram:- bit.ly/3mlspQu
gmail :- shantanukejkar@gmail.com
creator:-
-----shantanu kejkar------
#module,#python #python3 #codeyug #shantanukejkar #import #tutorial #pythonmodule
NOTES:
1. WHAT IS MODULES?
We use modules to break down large program into Small and manageable program.
2. TYPES OF MODULES?
BUILD IN MODULES
USER DEFINED MODULES
There are numbers of build in modules in python.
And user defined modules are created by us.
Saving the file with .py extension and if need later just use import keyword and file name .
Important point :
Never save a file name with module name .
SYNTAX OF IMPORTING:
import folder
Import folder as f
from folder import file
from folder import *
from folder import file, app,os
Factorial of 5 ?
5! = 5×4×3×2×1 = 120
Thnx bro
Biggest advantage for us is no need to search for another utube channel..,sir completed whole python from basic to advance. 😢
Dil khush kardiya itna acha samjate ho bhie
Please do share..
Thankuuuu sir. Explain so clearly
😍😍
Kya explain Kiya h sir apne😊
Super clear I understand the topic crystal clearly
Thanks and please check my latest video
Bro thnx you are jenious😊
Welcome 😊
helpfull video brother keep it up
Thanks. Please share playlists.
Hi Code-yug, assume that I have 2 python files and I want them in almost every python projects. How to import them in other projects ? Now I am using 'sys.path.append(path_to_my_special_files).
Whatever you are doing, it should work. Instead of appending, try adding path in environment variables.
@@Codeyug After watching your video about modules and PYTHONPATH, I've added an env var and set my project path there. But yet it's not working with normal import statement. I know the command line problem, so I restarted it but no luck.
@@kcvinu please send me screenshots on instagram..i will try to help there. Else, will schedule a meeting.
@@Codeyug Okay, Please give your insta ID.
Sir ,modules ke full playlist de digiye,unable to find?
@@SandhyaMaurya-i7z hi Sandhya..please check my python playlist. You will get all videos there
@@Codeyug ok sir.
After import the content in main module at the time of execution it give error name 'null' is not defined so how to execute the program
Please Send me the program over linked in or mail id.. You can check in about section.
Thank you sir
Check playlists please...
Thanks a lot
Follow oop and advanced python playlist
super bro
Thanks!
Sir mujye datafetch karna hai COVID 19 ka or usmaise death cases chahiye ye bathai sir pls 🙏🙏
I am not sure.. But there is built in module. Check on internet.. And you can also fetch from websites by data scraping.. I am not much sure.. Please explore on internet
We don't want modules in python we asked import module from a package
What is the use of
If __name__:'__main__'.
Please tell me.
ruclips.net/video/9x48vK-QCfY/видео.html
Sir math module ko print function m likhte h tbhi output aata h lekin jab user define module jese add function ko use krte h print function m to vo none return krta h esa kyu
It depends on return type... Example, math module sqrt function square value return krta hai hence bahar tumhe use print krna padta hai. But, tumhara add function directly print kr rha hai..
how to do it in pycharm ide,im so confused:(
Same... Pycharm is nearly same as vscode.
u havent return the arguments in function add
Will check..thanks