README.md
Lesson 4: Stacks and queues
In this lesson you'll work through stacks and queues step by step, with short exercises after each idea.
Full lesson: https://glibcode.net/courses/algorithms/lessons/4
Files
stacks_queues.py: balanced brackets with a stack, a queue with deque
Tip: f-strings can show the expression too:
print(f"{total=}").
Tip: Use a virtual environment per project:
python3 -m venv .venv.
Run it
python3 stacks_queues.py
Exercises
See exercises.md. Ask in the forum after you have tried.