I'm new to Python (and programming), so bear with me if I ask really stupid questions :)
So, I want to include variables in the filename of the results. This is what I have so far:
resfile = open("simple.csv","w")
#lots of stuff of no relevance
resfile.close()
In the script I have two variables, minLenght=5000 and minBF=10, but I want to change them and run the script again creating a new file where I can see the number of the variables in the title of the file created, e.g. simple500010 and I want a new file created everytime I run the script with different values for the two variables.
I tried this:
resfile = open("simple" + [str(minLength)] + [str(minBF)].csv,"w")
But that doesn't work.
Any ideas?