
Niranjan S. answered 04/01/19
Tutor
New to Wyzant
Experienced Tutor Specializing in Python
>> from glob import glob
>> container = glob('*.txt')
This will give a list (python list) of file name with extension of txt. Variable container has the output of glob('*.txt')