This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
values = ['comma','separated', 'list', 'of','values', 'each', 'surrounded', 'by', 'quotes'] | |
# for each item in the list of items | |
for value in values: | |
# construct the filename; prefix or suffix optional | |
filename = 'prefix-' + value + '.jpt' | |
# open the file to be written | |
fo = open(filename, 'w') |