Archive of stories published by Weekly Python

Listing Directory Contents With Python

As part of the Weekly Python Coding Challenge this week, you need to use Python to list the contents of a directory. This article will cover the three primary methods of accomplishing that using Python.

Using the “os” Module

These were the top 10 stories published by Weekly Python; you can also dive into yearly archives: 2021, 2023.

About
Weekly Python
Come with us on a journey to learn and improve in the world of Python Development.
More information
Tags
Editors