from … import … - Python for Beginners

Опубликовано: 01 Июль 2026
на канале: The Software Mentor
No
0

from … import … - part of Python for Beginners.
Short, clear Python lessons - one concept at a time.

In this lesson:
from module import name — use the name directly, no prefix
import module as alias — shorten a long module name
You can import multiple names: from math import sqrt, pi
Avoid from module import star — be explicit about what you import

Chapters:
0:00 Intro
0:08 What is from … import … ?
0:18 Walkthrough
0:26 Walkthrough
0:37 Running using_math.py
0:45 Walkthrough
0:53 Walkthrough
1:02 Specific import vs wildcard import
1:14 Recap

Module: Modules & Packages
Every command and code example in this video is executed and verified before publishing.