SyntaxFix
Write A Post
Hire A Developer
Questions
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