1. get files in the current directory with the assum that the directory is like this: a .py |----dataFolder |----Myfolder |----1.csv , 2.csv, 3.csv # a.py 1 def getFileList(): file_list = [] cur_dir = os.getcwd() for folder in os.walk(cur_dir).next()…