I would like to format a string based on the input. For example if the line count is 1, the output must be image00001.png
and if the line count is 400, the output is image00400.png
I use the following to do so
filename = "image%05d.png".format(line_count)
but it doesn't work as expected. What am I missing?