Key Ideas
1Creating & Importing Modules. A module is simply a Python file. Any .py file can be imported by other files. When you write import math, Python finds math.py (or a compiled equivalent) and executes...
2Packages — Organising Multiple Modules. A package is a folder containing an __init__.py file and multiple modules. This lets you organise large projects into namespaced sub-modules. The __init__.py runs when...
3pip & Virtual Environments. pip is Python's package installer. It downloads and installs packages from PyPI (Python Package Index). A virtual environment is an isolated Python installation for ea...
4Standard Library — Must-Know Modules. Python ships with an enormous standard library — "batteries included." These are the modules every Python developer reaches for regularly: