"Creating a new file, filename contains loop variable, python","f = open('file_' + str(i) + '.dat', 'w')"