what do you need to import to use replace function in python code example
Example: python replace variable in string
plot.savefig(f'hanning{num}.pdf') # added in Python 3.6
plot.savefig(f'hanning{num}.pdf') # added in Python 3.6