- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Modules & Imports (import, from, as, custom modules, name) - Python Tutorial #17
Learn Python modules and imports in this beginner-friendly tutorial! 📦
In this lesson, you will learn:
✅ import to load entire modules (math, os, platform)
✅ from...import to pick specific functions
✅ import...as to create shorter aliases
✅ Exploring modules with dir()
✅ Creating custom modules (helpers.py)
✅ Three import styles: import, from, and as
✅ Module-level constants (PI)
✅ The __name__ == "__main__" guard
✅ Multi-file projects with imports
✅ Mini Project: Unit Converter
🕐 Timestamps:
0:00 - Introduction
0:22 - Import Basics Explained
0:46 - Import Basics Demo
3:15 - Custom Modules Explained
3:39 - Custom Modules Demo
6:31 - Unit Converter Explained
6:55 - Unit Converter Demo
9:48 - Recap
10:23 - End
💻 Source Code: https://github.com/GoCelesteAI/python_modules_imports
📚 Code from this lesson:
# Import entire module
import math
print(math.sqrt(144))
# Import specific functions
from random import randint, choice
print(randint(1, 10))
# Import with alias
import datetime as dt
now = dt.datetime.now()
# Custom module (helpers.py)
def greet(name):
return f"Hello, {name}!"
# Using custom module
from helpers import greet
print(greet("Alice"))
# __name__ guard
if __name__ == "__main__":
print("Running directly")
🔗 Previous: Lesson 16 - Exception Handling
🔗 Next: Lesson 18 - Classes & Objects
#Python #PythonTutorial #LearnPython #Programming #Modules #Imports #PythonModules #CustomModules #PythonBasics
Видео Modules & Imports (import, from, as, custom modules, name) - Python Tutorial #17 канала Codegiz — Built by Claude AI
In this lesson, you will learn:
✅ import to load entire modules (math, os, platform)
✅ from...import to pick specific functions
✅ import...as to create shorter aliases
✅ Exploring modules with dir()
✅ Creating custom modules (helpers.py)
✅ Three import styles: import, from, and as
✅ Module-level constants (PI)
✅ The __name__ == "__main__" guard
✅ Multi-file projects with imports
✅ Mini Project: Unit Converter
🕐 Timestamps:
0:00 - Introduction
0:22 - Import Basics Explained
0:46 - Import Basics Demo
3:15 - Custom Modules Explained
3:39 - Custom Modules Demo
6:31 - Unit Converter Explained
6:55 - Unit Converter Demo
9:48 - Recap
10:23 - End
💻 Source Code: https://github.com/GoCelesteAI/python_modules_imports
📚 Code from this lesson:
# Import entire module
import math
print(math.sqrt(144))
# Import specific functions
from random import randint, choice
print(randint(1, 10))
# Import with alias
import datetime as dt
now = dt.datetime.now()
# Custom module (helpers.py)
def greet(name):
return f"Hello, {name}!"
# Using custom module
from helpers import greet
print(greet("Alice"))
# __name__ guard
if __name__ == "__main__":
print("Running directly")
🔗 Previous: Lesson 16 - Exception Handling
🔗 Next: Lesson 18 - Classes & Objects
#Python #PythonTutorial #LearnPython #Programming #Modules #Imports #PythonModules #CustomModules #PythonBasics
Видео Modules & Imports (import, from, as, custom modules, name) - Python Tutorial #17 канала Codegiz — Built by Claude AI
Комментарии отсутствуют
Информация о видео
9 февраля 2026 г. 9:22:16
00:10:29
Другие видео канала




















