Python Modules and Packages | Python tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ค. 2024
  • In this comprehensive tutorial on Python Modules and Packages, we delve into the fundamental concepts that every Python developer should grasp. From understanding modules and importing them to executing modules as scripts, we cover it all
    What's Covered in This Video 🚀 :
    1. Introduction to Python Modules:
    - Explanation of modules in Python programming
    - Understanding the 'import' keyword and its usage to access module functionality.
    2. Importing Specific Elements:
    - How to import specific objects from modules using the 'import' keyword.
    - Exploring the use of aliases (as) for imported objects to enhance code readability.
    3. Executing Modules as Scripts:
    - Learning how to execute Python modules directly as scripts.
    4. Understanding Python Packages:
    - Introduction to Python packages and their significance in organizing modules.
    - Explaining the purpose of the '__init__.py' file within packages.
    5. Exploring '__all__' Attribute:
    - Controlling what gets imported when using wildcard (*) imports.
    🎬 Timestamps:
    0:00 Introduction
    0:17 What is a Python Module
    0:55 The import keyword in Python
    2:13 Using from and import keyword
    5:07 Using alternative names in import (The as keyword)
    6:02 Executing a Python Module as a script
    8:35 Python Package
    12:04 The _all_ attributes
    Resources:
    Regular Package: docs.python.org/3/reference/i...
    Namespace Package: docs.python.org/3/glossary.ht...
    Publish Your Own Python Package: / unlock-the-power-of-pi...
    🔗 Code Snippets:
    Python Series: github.com/ridwanray/Learn-Py...
    This lesson: github.com/ridwanray/Learn-Py...
    🌐 Connect:
    🌍 Website: ridwanray.com
    🔗 GitHub: github.com/ridwanray
    📰 Medium: / ridwanray
    💼 LinkedIn: / ridwanray
    Support Me and The Channel:
    ☕️ SUPPORT
    ► Buy me a coffee: 👉 www.buymeacoffee.com/alabariseo
    🌐 Connect:
    🌍 Website: ridwanray.com
    🔗 GitHub: github.com/ridwanray
    📰 Medium: / ridwanray
    💼 LinkedIn: / ridwanray
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 3

  • @ridwanray
    @ridwanray  2 หลายเดือนก่อน +1

    Don't forget to Like, Comment, and Subscribe.
    ► Connect:
    Website: ridwanray.com
    LinkedIn: linkedin.com/in/ridwanray
    Github: github.com/ridwanray

  • @taofeekganiyu2344
    @taofeekganiyu2344 3 หลายเดือนก่อน +1

    Thank you.

    • @ridwanray
      @ridwanray  2 หลายเดือนก่อน +1

      Thanks for watching ❤