I hope you can help me with a very specific thing that I want to do in my python code. So, I want to create a concrete number of csv files, I mean, I want to create a csv file for each material in a storage. At this moment I have:
nMat = 2
for i in range(nMat):
with open(infoVar[i].csv,'w') as f:
writer = csv.writer(f, delimiter='\t', lineterminator='\n---------------\n')
writer.writerow(['Id' + ' ' + 'Date & Time'])
This code obviously only creates a csv file named infoVar[i]
but I wanted to create 2 csv files named infoVar0
and infoVar1
for example or something that creates several csv files.