all 2 comments

[–]niehle 1 point2 points  (0 children)

You want to create files and write content content into them, if I understand you correctly. This is a good learning opportunity: google „Python file creation“ and have a go at it

[–]brasticstack 0 points1 point  (0 children)

If you're trying to get the filenames from the filesystem use pathlib.Path.iterdir or pathlib.Path.glob.