Answers for "list all files starting with python"

0

list all files starting with python

import os
prefixed = [filename for filename in os.listdir('.') if filename.startswith("prefix")]
Posted by: Guest on April-21-2022

Code answers related to "list all files starting with python"

Python Answers by Framework

Browse Popular Code Answers by Language