Real Pythonยท
Quiz: How to Get a List of All Files in a Directory With Python
TL;DR
This 10-question quiz tests how to list and filter files in Python, from a single directory to an entire directory tree. It covers .iterdir(), .glob(), .rglob(), attribute filtering, and skipping unwanted directories, then provides a score to check your understanding.