Computer Science, asked by anweshasingh6348, 1 year ago

How can I iterate over files in a given directory in Python?

Answers

Answered by Anonymous
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