Source Code:
(back to article)
import glob # Find all files with the ".txt" extension txt_files = glob.glob("*.txt") # Print the names of the found files for file in txt_files: print(file)
Result:
Report an issue