How To Import Modules - Python Tutorial #11

Published: 18 March 2018
on channel: DMK Data
92
1

To import modules we simply need the import keyword followed by the modules name. This gives us access to the module with dot notation. To get to a name within the module we just type module.name

Alternatively we can use from module import names to import names within a module directly to our current namespace. If we don't like the module's name we can use a different name with the 'as' keyword. Easy but essential.

Python:
https://www.python.org/

Python's Builtin Modules:
https://docs.python.org/3/py-modindex...

Outro Song:
Alright by Silent Partner is part of the YouTube Audio Library.


Watch video How To Import Modules - Python Tutorial #11 online without registration, duration hours minute second in high quality. This video was added by user DMK Data 18 March 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 92 once and liked it 1 people.