# FILE: homework09.py # AUTHOR: Eugene Wallingford # DATE: 2014/11/01 # COMMENT: A module that provides the get_files() function. import os def name_of(filename): name,ext = filename.split('.') return name def ext_of(filename): name,ext = filename.split('.') return ext def get_files(): return [f for f in os.listdir('.') \ if os.path.isfile(f) and \ name_of(f) != '' and ext_of(f) == 'txt']