Python Tutorial for Beginners 9: Import Modules and Exploring The Standard Library

  Рет қаралды 851,645

Corey Schafer

7 жыл бұрын

In this Python Beginner Tutorial, we will begin learning how to import modules in Python. We will learn how to import modules we have written, as well as modules from the Standard Library. We will also explore sys.path and how imported modules are found. Let's get started.
The code from this video can be found at:
github.com/CoreyMSchafer/code_snippets/tree/master/Python-Imports
Watch the full Python Beginner Series here:
kzfaq.info/sun/PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7
✅ Support My Channel Through Patreon:
www.patreon.com/coreyms
✅ Become a Channel Member:
kzfaq.info/love/CezIgC97PvUuR4_gbFUs5gjoin
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - kzfaq.info
Facebook - CoreyMSchafer
Twitter - CoreyMSchafer
Instagram - coreymschafer
#Python

Пікірлер: 617
@ljka
@ljka 7 жыл бұрын
Youre a master Python Programmer! You explain clearly and in-depth but i dont feel information overload. You know what to teach and not overdo it. I appreciate this. Thank you.
@coreyms
@coreyms 7 жыл бұрын
Hey, thanks. That's nice to hear. I appreciate it!
@vinodkashyap599
@vinodkashyap599 6 жыл бұрын
Yes i agree
@PalaniveluKs
@PalaniveluKs 5 жыл бұрын
+1
@john34965
@john34965 5 жыл бұрын
agree
@ramarao_amara
@ramarao_amara 4 жыл бұрын
that's true
@notanalien7836
@notanalien7836 4 жыл бұрын
This playlist is a GEM that I found during the Quarantine.
@brandoncarrera1017
@brandoncarrera1017 4 жыл бұрын
Me too bro, this man is incredible
@rohanghoshdastidar1047
@rohanghoshdastidar1047 3 жыл бұрын
Agreement 100
@derrick_rjchurchbanks1720
@derrick_rjchurchbanks1720 3 жыл бұрын
really true i just enjoy it every day and not idle away the time
@Hrit
@Hrit 3 жыл бұрын
same for me . Most of the other python courses are bullshit.
@soothingstationW
@soothingstationW 3 жыл бұрын
Same lol
@muneeral-amodi4505
@muneeral-amodi4505 6 жыл бұрын
Your are amazing! I've never seen such a comprehensive tutorial, your teaching is clear and organized and even more, it focuses on what we need. Thank you Corey, I really appreciate your wonderful efforts.
@phillipcarnock2636
@phillipcarnock2636 5 жыл бұрын
I think what sets you apart is your ability to know your audience and stay on track with what you are teaching. Everything is to the point, succinct and clear. Great job.
@MarkWusinich
@MarkWusinich 7 жыл бұрын
I have taken two courses on python and no one ever went over this. Thank you!!!
@achocolatemonkey
@achocolatemonkey 5 жыл бұрын
As a someone with literally no prior experience with coding, you have made this videos so clear and easy to understand. I don't think words are sufficient to express my gratitude, but I really appreciate all the effort you take to make these videos!! Thanks a million!! 💕
@anjojna267
@anjojna267 5 жыл бұрын
Yooo...I love how you explain. Among all the other tutorials I've been watching, it's in your videos I get to understand Python clearly.
@TheChillBison
@TheChillBison 3 жыл бұрын
I took a full course on Python and this was never covered, yet it was one of the first things I had to look up when doing my first real project. Thank you!
@maribelyazdanifar8823
@maribelyazdanifar8823 4 жыл бұрын
I appreciate how you organized the basics tutorials and explained the logic behind naming of the videos in this playlist. Thank you for sharing your knowledge and the teaching us Python in a very thoughtful way.
@shantanusudame1916
@shantanusudame1916 4 жыл бұрын
Corey Schafer is easily one of the best online teacher out here. 100% crystal clear undertanding. Thank You so much
@juarezmonteiro5777
@juarezmonteiro5777 3 жыл бұрын
I must say that you have an incredible ability to spread knowledge with simplicity. That's rare. Thank you for the videos.
@peterchen5710
@peterchen5710 4 жыл бұрын
I have re-watched some of your videos multiple times, not because its hard to understand, its because you explained it so well I dont wanna miss any bits of it! You are truly a master programmer and a superb teacher, thanks for helping us to understand what Python really is!
@coreyms
@coreyms 4 жыл бұрын
Thanks!
@okayest_pianist
@okayest_pianist 3 ай бұрын
6 years later and still super helpful. blesses and much love brother!
@guilhermezucco1269
@guilhermezucco1269 3 жыл бұрын
Hello from Brazil. I'm currently getting to know python a bit better and I can honestly say that this playlist has truly helped me a lot so far. I already use some data science algorithms in R but was also hoping to widen my knowledge. This channel is really giving me valuable information on how to accomplish my goals. Thank you so much, Corey Schafer, for this!
@KarthikRampur-ql2td
@KarthikRampur-ql2td 6 жыл бұрын
By far the best tutorials I ever came across on the internet on python.Big thanks for your efforts.
@eurekapoultry7215
@eurekapoultry7215 5 жыл бұрын
I really like that you throw extra tidbits in there that most "beginner" level courses would not. I have a fair amount of programming experience but Python is new to me. I started from the beginning just to make sure I didn't miss anything. Coming from "C" like languages, Python is a bit interesting.
@failuregreat9424
@failuregreat9424 6 жыл бұрын
This particular video is literally one of the best videos I've ever watch about teaching something. I've programmed in some languages, just basic stuff and curiously I never had to deal with libraries, and I was always curious about it.
@coreyms
@coreyms 6 жыл бұрын
Thanks!
@jc9101
@jc9101 6 жыл бұрын
You have no idea how helpful your videos are! I sincerely thank you for all your efforts.
@sunpengjie4565
@sunpengjie4565 5 жыл бұрын
I have to say this is the best intro series of video for python. Clear and easy to understand. As long as you have some basic background from programming, you can understand it. Great work Corey
@amandaahringer7466
@amandaahringer7466 2 жыл бұрын
You are an exceptional teacher and do a great job covering what's going on behind the scenes. I've taken several Python courses and this was never mentioned.
@bhupendrasinghgurjar6051
@bhupendrasinghgurjar6051 6 жыл бұрын
Master Of Python Programmers ! He not only focus on generalizing things but specialization in-depth . I appreciate this specialization not generalizing. Thank You
@aperxmim
@aperxmim 5 жыл бұрын
I am blow away in the training, no slow intro, just the training, something we need
@varunsaraogi8488
@varunsaraogi8488 6 жыл бұрын
I cannot thank you enough for your tutorials, the clarity with which you explain is mind boggling. Thanks again!!
@AnupamPatel02
@AnupamPatel02 5 жыл бұрын
Thanks a lot Corey, I have done several courses in python ( paid / open) , and have to say you got a interesting way of teaching , which keeps me going for the next video in the recommendation :).
@MrHossain2357
@MrHossain2357 10 ай бұрын
Many youtuber teaches python but they are not really good at it. They probably good at other programming language and since there is so much similarity so they just teach. But this guy seems to be very good in python. Hence, can teach very clearly since he has a very in-depth understanding. It's crazy that thank to KZfaq, we get this kind of content for free.
@RedBunnyFromMars
@RedBunnyFromMars 4 жыл бұрын
This is fantastic. Thank you so much for making the series, it's like providing a swiss army knife that will be useful for literally everyone. I really hit a wall with this because I'm at the intersection of data visualization and professional cartoon production. This is incredibly helpful for automating Maya and Blackmagic Fusion and NukeX, and having the ability to parse tutorials and scripts is immensely useful. Thanks dude
@AnilGupta-iv1rz
@AnilGupta-iv1rz 5 жыл бұрын
Your tutorials is the best thing happened to me in 2019.
@animefreak21
@animefreak21 9 ай бұрын
I have watched all the fundamental of Python videos thrice already. Though I know that Im kinda outdated of your videos but your way of teaching Corey makes me want to learn more. There are times I have thought I cant make it but because of these tutorials I have my hopes up again. You're the inspiration. Thank you.
@sebastianskopek
@sebastianskopek 3 жыл бұрын
Awesome, awesome, awesome, and what a great way to end this Python intro with the antigravity module. Love it!
@vladz3485
@vladz3485 Жыл бұрын
Corey, thanks! You are the best in teaching Python. I finally understand all the complex stuff, because you made it easy to comprehend.
@ReddoX30
@ReddoX30 3 жыл бұрын
Thank you Corey for these tutorials, they are really in depth and you cover all the little details that other tutorials leave out!
@jorgerdz4494
@jorgerdz4494 3 жыл бұрын
I've been learning from different sources about python and your videos are the ones that i've found more complete, thanks!
@mehas81
@mehas81 2 жыл бұрын
This guy is a python GOAT . Will contribute via PayPal. He pretty much takes hours of boring " I wanna throw up" lectures and sums up into 20 mins videos. Well done dude !!! Many thanks......
@genericnamethingy
@genericnamethingy 3 жыл бұрын
Thank you so much for having tutorials that are so clear and that I don't have to put at 1.25x speed. Perfect pacing, I'm experienced with other languages but I'm doing this from the start since you provide valuable information and explanations. Excellent, thank you!
@logenninefinger3420
@logenninefinger3420 4 жыл бұрын
Great tutorials 1- 9. Such fun and now just like that I am into spare time programming again after not writing any code for 15 years. Didn't need it in the job. Thank you very much!
@oo6127
@oo6127 4 жыл бұрын
This man is a legend man, He went out of his way to actually share a joke from the Python community
@AmazingJayB51
@AmazingJayB51 4 жыл бұрын
I’m learning Python now, and your series is really helpful, thank you! You explain the topics really well.
@n3rd0
@n3rd0 Жыл бұрын
Corey, I fully appreciate your work, everything is nice and clear! Until now all information was complicated, but you made it clear! Thank you!
@mmma79299
@mmma79299 5 ай бұрын
Thank you very much, I've been procrastinating to learn python for years, but your well explained and concise videos motivated me a lot that I covered all basics you taught us.
@noslenwerdna
@noslenwerdna 2 жыл бұрын
I am a C++ programmer and I've been trying to figure out why I should learn python so I've been watching a bunch of different videos to get a feel for what it's all about and why people are choosing it. That being said, this was one of the best videos that I have come across. I don't need to learn to program, I need to find libraries and see what they can do. Your video has pointed me into the right direction for my purpose and I thank you.
@yaboi1525
@yaboi1525 3 жыл бұрын
One day when I'll land on a job I'll make sure to recognize all your efforts in producing quality tutorials. You're the best when it comes to python no doubts. I owe you so much. Thank you very much sir.
@chandansarkar1123
@chandansarkar1123 5 жыл бұрын
Following this series in 2018. You are amazing Corey. Thanks a ton for putting this together..
@alihejazi6345
@alihejazi6345 5 жыл бұрын
the way you teach is really awesome. you are like a teacher with unlimited energy and that's makes your videos super cool and awesome. thanks for everything I learned so much from you.
@zraffens5145
@zraffens5145 4 жыл бұрын
You are a true teacher. I did not expect that you would show how to do it on Windows as well. Thanks a lot!
@toothfairy5352
@toothfairy5352 5 жыл бұрын
Omg🙊... we’ve finished the basics😍! Onto the next stuff!
@avantisinha4012
@avantisinha4012 6 жыл бұрын
Your teaching is out of this world Python Man!! I am so impressed.
@nickt423
@nickt423 5 жыл бұрын
I would call myself a beginner-intermediate at Django. I'm coming back to learn some of these concepts more thoroughly. I found myself using many of the things you are talking about, but I didn't understand why. Your tutorial series has done a great job clearing some of that up. Thank you Corey!
@Ricebow11
@Ricebow11 6 жыл бұрын
thanks Corey for the beginner tutorial videos. I've definitely capture a lot from watching your videos. I'm using these videos more than the materials provided by school... goes to show what school really has to offer.
@aakashverma8602
@aakashverma8602 5 жыл бұрын
Me nowdays in youtube i only search for your videos if i want something related to python , each and every video of urs consist of so much information , its really helpfull , thanks for your efforts ....!!!
@rachitgupta2336
@rachitgupta2336 6 жыл бұрын
This guy is the best instructor on KZfaq.
@mkilic6497
@mkilic6497 4 жыл бұрын
Corey all the best to you, already finished the beginner series and was a very good intro for me, many thanks for your efforts
@nikhilailani2119
@nikhilailani2119 4 жыл бұрын
Thanks is mandatory to such huge share of python knowledge. I gotta say, you taught me more than my university did. Thanks Corey!
@SayWhatSteve
@SayWhatSteve 2 ай бұрын
I actually got teary eyed when you explained that the rest of the videos would not be numbered because we covered the basics needed to go learn everything. This is maybe my third chosen route of trying to learn this stuff and by far has given me the most confidence moving forward! Thank you for an excellent series of videos! Can't wait to watch more.
@BiancaAguglia
@BiancaAguglia 5 жыл бұрын
Another excellent tutorial, Corey. I can't tell you how much this video series made my life easier. 😀
@kumarmayank6310
@kumarmayank6310 3 жыл бұрын
Corey, I am a computer science graduate and I have just one word for you - AWESOME!!
@marco.nascimento
@marco.nascimento 5 жыл бұрын
Very nice in-depth tutorial on modules, I've been studying Python for a while and haven't almost no one getting in this particular topic of changing the path variable for module importing. Your work is awesome, cheers from Brazil. (I always like to say where I'm from to give the content maker a grisp of how far his work is getting heh)
@user-kt2bt1lq3v
@user-kt2bt1lq3v 7 күн бұрын
This course is 8 years old yet still the best.
@michaelhans777
@michaelhans777 4 жыл бұрын
You're rock, dude! Thank you for the worth 20 minutes!!! I can finally understand how to operate those libraries and imports!
@smitpatel1358
@smitpatel1358 3 жыл бұрын
Corey is the Boss! I just suggested one of my friends who is starting with python to get on to Corey's playlist. Thanks Corey!
@ayoubuntu
@ayoubuntu 5 жыл бұрын
Thank you so much for this serie of python videos I've learned so much from you and I'm now able to dive into advanced usage of python in machine learning and big data. keep up Corey
@HenryFabianGT
@HenryFabianGT 6 жыл бұрын
As an Chemical Engineering student, I can't thank you enough for the effort and time you put into these tutorials. Your elegant and smart way of teaching makes it easy to understand and love Python. Now, me and the thousands of people who followed your tutorials have the wings to fly and keep exploring the wonders that this language offers... thanks to you. *I salute you, Sir!*
@g.deepakkrishnaa3847
@g.deepakkrishnaa3847 2 жыл бұрын
Why are you learning CS while pursuing Chemical Engineering? If you wanted, you would have studied CS from the beginning rather than coming into it now. People like you get into programming because of money and not because of passion.
@cristixyz
@cristixyz 2 жыл бұрын
@@g.deepakkrishnaa3847 Yeah. Heavens forbid someone tries to learn something new either out of curiosity or because he could apply it to his current field. How dare he? What an absolute disgrace of a human being for learning Python. He should be ashamed.
@uubfi3779
@uubfi3779 2 жыл бұрын
@@g.deepakkrishnaa3847 Wouldn't it be the other way around? That the guy's getting into programming because of passion not because of money. He's studying for chemical engineering, so he's probably going try to be a chemical engineer. Right? That would mean learning programming wouldn't really help him financially, so he must be learning it out of curiosity or passion rather than for the money.
@camilomarin1310
@camilomarin1310 5 жыл бұрын
You talk as simple as clean water, just perfect !
@maheshwarmaddula5958
@maheshwarmaddula5958 5 жыл бұрын
@Corey Schafer your python videos should be rated as the best and most useful one's
@abolfazlrezaei5397
@abolfazlrezaei5397 Жыл бұрын
after 5 years, these videos helped me to learn python very easly. I hope this comment make you happy and energetic
@easydatascience2508
@easydatascience2508 Жыл бұрын
You can see mine too. Detailed Python playlist provides most of the fundamentals, step by step, and source files too.
@cat36942
@cat36942 3 жыл бұрын
Its just amazing how straightforward your videos are !!
@testhekid
@testhekid 3 жыл бұрын
watched the video 3 times and finally understood how the standard library and importing modules work! also the comic looks fun i wanna check it out in the future when i understand more python
@timothymcgahan5178
@timothymcgahan5178 Жыл бұрын
You're explain of 'path' and how to change it....... PERFECT. Thank you!
@bharath695
@bharath695 4 жыл бұрын
I just say "Thank you "...you made me a better programmer today than yesterday!!.
@maxinteltech3321
@maxinteltech3321 4 жыл бұрын
@Corey Schafer I contribute to your patron to appreciation all I have learnt from your videos. Please continue your GREAT job Corey!
@coreyms
@coreyms 4 жыл бұрын
Thanks so much!
@2kpresident363
@2kpresident363 4 жыл бұрын
One of the best lecture among Python courses. You are really great!
@dipamvasani8727
@dipamvasani8727 6 жыл бұрын
It's quite ostensible that you are a great programmer with in depth knowledge about the things you work with. Just out of curiosity, I wanted to ask you, where did you gain your knowledge base from and how did you master all these languages and tools. And I can comment this on every video of yours, "They are the best tutorials on youtube right now."
@coreyms
@coreyms 6 жыл бұрын
Thank you for the compliment, Dipam. I studied computer science in college, so that is where I gained an understanding of the underlying concepts. Even though I enjoyed my college program, I still felt unprepared after graduation. I started off as a Front-end JavaScript developer for a GIS lab. That's when I was first exposed to Python and writing backend scripts. It took a lot of self-study to really grasp it. My favorite resources where the website Udacity and MIT OpenCourseWare. Udacity has a lot of great free courses put together by teams at Google, Microsfoft, Facebook, etc. And MIT OpenCourseWare has free lectures from MIT courses where you can relearn algorithms, data structures, and anything that may have faded since college. Other than that, I learn quite a bit on the job. I now work with Python every day and there is always something new that pops up that needs a solution. Thanks again for the kind words.
@mridulmacdu
@mridulmacdu 6 жыл бұрын
And we are really thankful for your best and great tutorials. so now you are become a full stack python developer ;-)
@datascience6215
@datascience6215 2 жыл бұрын
@@coreyms You are really very down-to-earth person. I really appreciate it👍
@rationalcfbfan
@rationalcfbfan 2 жыл бұрын
I love you Corey! Where have you been all my life? Thanks for these incredibly informative videos.
@lomeshdaheria9960
@lomeshdaheria9960 4 жыл бұрын
Thanks Corey sir you have emerged as one of the best python tutor in youtube .
@ravisoni1905
@ravisoni1905 3 жыл бұрын
Man, whenever i want to explore python and now there so many resources like udemy, but still always think of corey schafer. u r a gem. who ever will find this playlist will surely be a good a python atleast
@FlareSoul69
@FlareSoul69 5 жыл бұрын
Thank you for the clear explanation on "import" and "from..."!!!
@user-gf3ut5rz6f
@user-gf3ut5rz6f 4 ай бұрын
Your pace was perfect... not too fast, not too slow. Well done.
@syedbaryalay5849
@syedbaryalay5849 6 жыл бұрын
the most satisfying tutorial. even if you don't wanna learn python these skills are great to get
@mostafaelnady7827
@mostafaelnady7827 5 жыл бұрын
the best tutorial ever in modules and you are the best python developer i have ever seen in my life and you are my idol sir big fan for you from egypt print("Thank you so much")
@wanghua77
@wanghua77 2 жыл бұрын
I really like your tutorial! It clears my doubts. While I was watching your video, I couldn't help wondering why I didn't find your video earlier. Thank you so much!
@gurudattshenoy5747
@gurudattshenoy5747 5 жыл бұрын
Awesome!! crystal clear. You make complex stuffs simple to learn, thats why you are awesome.
@Amalokch
@Amalokch 3 жыл бұрын
This is probably the best channel to learn Python. Very very easy to understand
@vultures1852
@vultures1852 11 ай бұрын
You're the best teacher, it's a pleasure to re-watch your videos
@itsabhijha
@itsabhijha 4 жыл бұрын
Thank you for all your lessons so far, you are excellent at explaining any topic. Best wishes for your life !!
@gyaneshnewalkar7685
@gyaneshnewalkar7685 5 жыл бұрын
Thank you so much for making it so easy to understand. You are a great teacher.
@josephransom6578
@josephransom6578 Жыл бұрын
Wow. This video was so helpful and not too overwhelming. Thank you for putting the work into this.
@nithingeorge579
@nithingeorge579 2 жыл бұрын
Hello, Corey. This is an absolute masterpiece. I am watching this playlist, one video a day. You are a phenomenal instructor. I would love to watch videos on 'Socket programming' as well, if you have plans to make those in future. Cheers! :)
@avwj09
@avwj09 2 жыл бұрын
This was exactly what I was looking for and it was well explained. You are amazing!
@Medicinboardexam
@Medicinboardexam 6 жыл бұрын
I took a python beginner lesson on Udemy, and went back to your beginner course. I find your video really help to fill the gap what I missed in the Udemy python course. It makes everything more clear and I really like the way you make examples. Thank you for all the efforts of doing such a wonderful job. These are the best python videos for any beginners at least I truly recommend. Also, as a self-taught learner, I'm wondering what's your suggestions of getting more practice or exercise?
@user-ls7cu4je6v
@user-ls7cu4je6v 4 жыл бұрын
Great video!! As a beginner, I learned a lot from your tutorial series! Thank you so much!!
@davr9724
@davr9724 5 жыл бұрын
Thank you for your video, it cleared up a long-standing problem I had even with me having a newer version of python.
@mobasshirbhuiyanshagor3611
@mobasshirbhuiyanshagor3611 3 жыл бұрын
No words to complement your deliverables. Take a bow, Sir!
@abanhidy
@abanhidy 2 жыл бұрын
Hey Corey! Thanks for you uploaded video! I really like them...all of them! It is short, clear and they are essential! ...so many many thanks for that!
@genelee1356
@genelee1356 6 жыл бұрын
Corey - This is good! You answer a lot of questions I had in mind.
@rickychung7851
@rickychung7851 3 жыл бұрын
You are marvellous! I don't normally leave messages but I've enjoyed your vids so much.....A Big Thank You to You!
@omarpixel9176
@omarpixel9176 3 жыл бұрын
I'm watching this in 2020 and timestamp 17:05 gave me a deja vu vibe. Thanks for doing this series by the way, it is probably the best series for Python beginners and intermediate programmers who want to learn Python.
@engineer580
@engineer580 6 жыл бұрын
The most excellent video I have ever watched about this topic
@rajcodes100
@rajcodes100 6 жыл бұрын
Hi Corey - thanks so much for this series.The series covered alot of materials - your explanations has helped me to understand Python fundamentals better.
@7XxKiKoOxX7
@7XxKiKoOxX7 3 жыл бұрын
Video 09/143 Cleared ! Thanks for the great introduction.
@sueholder703
@sueholder703 4 жыл бұрын
Very in-depth as always!
@ManuelShelton
@ManuelShelton 6 жыл бұрын
Thanks Corey for this very interesting python course. I enjoyed very much your well prepared courses.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 148 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 10 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 26 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 148 МЛН