Skip to content

PRO TIP Block youtube.com at the DNS level β€” Pi-hole, NextDNS or your hosts file β€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Python Modules for Beginners

30.3K views on YouTube

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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.

πŸ’– Support me on Patreon ➜ https://patreon.com/davegray

⭐ Become a full-stack dev with Zero To Mastery Courses:
– The Complete Python Developer: https://bit.ly/CompPythonDev
– Complete Machine Learning & Data Science: https://bit.ly/CompMachineLearning
– Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Questions – Please post them to my Discord ➜ https://discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

πŸ‘‡ Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

πŸ”— Source Code: https://github.com/gitdagray/python-course

πŸ”— Playlist for this Python Course: https://bit.ly/dg-beginners-python

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:
πŸ”— Python Official Site: https://www.python.org/
πŸ”— Visual Studio Code Official Site: https://code.visualstudio.com/
πŸ”— Python Module Index: https://docs.python.org/3/py-modindex.html
πŸ”— Python Standard Library: https://docs.python.org/3/library/index.html

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

#python #modules #beginners