Programming, Science, Python, Mathematics, Towards Data Science.
number of files as well as the printing interval. #Go to the Result directory cwdir=os.getcwd() dir_path=os.path.join(cwdir,"Result") os.chdir(dir_path) #Go through files in the directory and store filenames filenames=[] iterations=[] for root,dirs,files in os.walk(dir_path): for datafile in files: