Functions, Modules and Packages
Write your own reusable functions with parameters and return values, understand scope, use Python's built-in modules, install packages with pip and keep projects tidy with virtual environments.
Part of Python for AI and Data, module 3: Functions, Files and Data
What you will learn
- Task 1: Writing your own function
- Task 2: return versus print, and scope
- Task 3: Built-in modules: batteries included
- Task 4: Packages and pip
- Task 5: Virtual environments and tidy projects
Key terms in this lesson
- Arguments
- Csv
- Docstring
- Json
- Local variable
- Matplotlib
- Modules
- Pandas
- Parameters
- Pip
- PyPI
- Standard library
- Typosquatting
- Virtual environment
Start learning free
This lesson is part of the Premium. Create a free account to start with the free lessons first.
← Fix the Commission Script · Files, CSV, JSON and Handling Errors →