for iterator in list.dir being treated as string python code example
Example: get files in directory python
import os
files_and_directories = os.listdir("path/to/directory")
import os
files_and_directories = os.listdir("path/to/directory")