To show all of the directories in a directory, the code to do so is, os.listdir(pathway).
So, for example, to show all of the directories in the "C:\\Users",
the code to do so is shown below:
First, we must import the os module.
After this, we must the listdir() function to list all of the directories.
The parameter we specify into the listdir() function is the directory that we want to find all the subdirectories for.