Composing a Function in Python
Python Workflow
1
Set Up venv
python -m venv .venv — isolated environment per project.
2
Install Dependencies
pip install -r requirements.txt — pin versions for reproducibility.
3
Write & Test
Write functions; test with pytest as you go.
4
Run & Deploy
python script.py locally, deploy to your platform of choice.
Master Python at Noble Desktop
Noble Desktop's Python Programming Immersive covers AI APIs, data analysis, and modern Python development.
Video Transcript6 sections
1Full Video Transcript
2Introduction to Python Functions
Hi, my name is Arthurin and I teach Python. Today I'm going to show you how you could compose your own function—a Python function. What is a function? A function is a block of reusable code, which means something that we could use over and over again.