filmov
tv
Python Programming: Lesson 16 - Modules

Показать описание
PLEASE SUBSCRIBE!!!
A module is a package of code that someone has already implemented that we can import for use in our program
import M allows us to use function F from the module by calling M.F()
from M import F allows us to use function F from the module by calling F()
from M import F as G allows us to use function F from the module by calling G()
0:11 Review of Functions that Print and/or Return Values
1:03 Review of Data Types in Functions
1:45 Review of Nested Functions
2:07 Review of Functions without Inputs
2:54 Review of Function Reference Variables
3:27 Review of Docstrings
8:37 NEW: Intro to Modules
13:30 NEW: Importing Modules
17:01 NEW: Importing Specific Constants or Functions from a Module
18:47 NEW: Calling Imported Constants or Functions by other Names
Thanks for watching, and PLEASE SUBSCRIBE!!!
A module is a package of code that someone has already implemented that we can import for use in our program
import M allows us to use function F from the module by calling M.F()
from M import F allows us to use function F from the module by calling F()
from M import F as G allows us to use function F from the module by calling G()
0:11 Review of Functions that Print and/or Return Values
1:03 Review of Data Types in Functions
1:45 Review of Nested Functions
2:07 Review of Functions without Inputs
2:54 Review of Function Reference Variables
3:27 Review of Docstrings
8:37 NEW: Intro to Modules
13:30 NEW: Importing Modules
17:01 NEW: Importing Specific Constants or Functions from a Module
18:47 NEW: Calling Imported Constants or Functions by other Names
Thanks for watching, and PLEASE SUBSCRIBE!!!