List files in directory using Python

First import os
Then call listdir() method as follows

In terminal, first we have listed the directories. Later, we have used python to list them

This is another example using Jupyter

Comments