# Lesson 6: Lists and dictionaries Lists and dictionaries comes up in almost every real Python project. We start with the why, then write code together. Full lesson: [https://glibcode.net/courses/python-basics/lessons/6](https://glibcode.net/courses/python-basics/lessons/6) ## Files - `collections_demo.py`: lists and dictionaries side by side > **Tip:** `help(len)` in the interpreter shows the documentation of any function. > **Tip:** f-strings can show the expression too: `print(f"{total=}")`. > **Tip:** Use a virtual environment per project: `python3 -m venv .venv`. ## Run it ```sh python3 collections_demo.py ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum once you've tried.