list a directory in python code example
Example: list directory in python
from os import listdir
## Prints the current directory as a list (including file types)
print(os.listdir())
from os import listdir
## Prints the current directory as a list (including file types)
print(os.listdir())