How To List Only Directories In Python
How To List Only Directories In Python to list only directories in python we use python os module. import os p=os.listdir(r’C:\Users\enaknar\Desktop\pycharm’) for i in p: if os.path.isdir(i): print(i) Here we are using two functions...