Python Modules for Beginners

preview_player
Показать описание

Learn Python modules for beginners in this tutorial. You will learn about Python's built-in modules and how to create your own custom Python modules. Also, the special __name__ value in modules and where to learn more about all of the Python modules available.

⭐ Become a full-stack dev with Zero To Mastery Courses:

👇 Follow Me On Social Media:

Python Modules tutorial for Beginners

(00:00) Intro
(00:05) Welcome
(00:14) An Example of a Built-In Module
(01:55) Modules We Have Used
(02:33) Import from
(03:35) Creating Aliases
(03:57) Module Contents with dir()
(05:21) Module Contents with dot notation
(05:39) Python Module Index
(06:35) Custom Modules
(09:36) if __name__ == "__main__"
(15:10) Making a Rock Paper Scissors module

📚 Tutorial References:

Was this Python Modules tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.

#python #modules #beginners
Рекомендации по теме
Комментарии
Автор

Wow, I'm a devops with super few knowledge in python. But this video taught me big time.

How to understand module and how one python file calls custom modules. Thank you so much

canadaBCvancouver
Автор

Dave you are a wonderful educator. I have been seen so many videos of the concept regarding "__name__==__main__" but none of them could teach me as clear as yours.

_subharajmishra
Автор

Thanks Dave one step closer to seeing my program idea coming to live!!

deepatterson
Автор

complimenti. Finalmente qualcuno davvero di chiaro. Grazie per questo corso eccellente

lorenzasaettone
Автор

thank you dave great teacher ever we want more next js video

khalilbenmeziane
Автор

Kansas fun fact : Kansas is home to the one of the greatest progressive rock band in the history of music, named Kansas, and their first album named Kansas. their music is so advance that their works will be considered as magic. no one ever come near this band ever .

xzex
Автор

8:56 If you return the print, will it print?

johnaweiss
Автор

I've tries to replicate importing a custom module, when I import Kansas the system underlines Kansas and by hovering on it, it returns the following message: kensas is not accesses pylance

thomasprevarin
Автор

Hello. More into web development with Js but wanted to ask if you have a LinkedIn account so I reach out and learn more from you.
You're advice on striving for daily progress has been really helpful and love your teaching. Very comprehensive

holygroovearena
Автор

Why vs code didn't offer subfunctions of math library? And formatting document did not work, too. I tried everything about formatting what was offered. How to fix this?😢😢

bahinhoo
Автор

cool channel! please consider a pygame series.

toddlask
Автор

10:57 Does the test for main inside kansas.py test itself? Or the module who imported it? Unclear.
14:55 How could kansas be the main file? It's imported. Unclear.

johnaweiss
Автор

Sir, Why _pycache_ file appear. Please.

utinthein
Автор

Couldn't understand it would try again

VictorChukwuemeka-ox
Автор

Error: " AttributeError: module 'kansas' has no attribute 'capital " problem line: print(kansas.capital) ????

quinnjin