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
In general, you can create strings using:
stringExample = "someString " + str(someNumber) print(stringExample) plot.savefig(stringExample)