Basics tutorials
For people new to Python or to programming. Nothing is assumed beyond what each tutorial lists.
4 Basics tutorialsClear filters
- Basics
Install Python and run your first program
Install Python on Windows, macOS or Linux, try it out in the shell, then write a small card about yourself in VS Code and run it.
17 min
Published 29 Nov 2026
- Basics
Work with lists, dictionaries and for loops in Python
Keep a week of step counts in a list and a dictionary, then loop over them to find the total, the average, your best day and the days you hit your goal.
18 min
Published 27 Nov 2026
- Basics
Read and write files with Python's pathlib
Save notes, read a CSV of expenses and list a folder with pathlib, the modern way to work with files in Python on any computer.
25 min
Published 26 Nov 2026
- Basics
Format text and numbers with Python f-strings
Put values into text, round and line up numbers, and debug faster with f-strings, by printing a small café bill one step at a time.
12 min
Published 21 Nov 2026