In Python, there are 2 ways to get a list of all subdirectories in the current directory.
Using os.walk Function
The os.walk() method generates the file names in a directory tree by walking the tree either top-down or bottom-up.
The following examp...