I would like to put an int into a string. This is what I am doing at the moment:
int
string
num = 40 plot.savefig(\'hanning40.pdf\') #problem
If you would want to put multiple values into the string you could make use of format
format
nums = [1,2,3] plot.savefig('hanning{0}{1}{2}.pdf'.format(*nums))
Would result in the string hanning123.pdf. This can be done with any array.
hanning123.pdf