How can I iterate over files in a given directory in Python?
Answers
Answered by
0
import os
file_names = os.listdir('directory goes here')
for file in file_names:
# do something with all file Present in the provided directory
Similar questions