Is there a way make fixed width substitutions with the python String.Template objects substitution language
For example if I wanted s to be 'A string 0003' how would I modify this code:
from string import Template
stmpl=Template("A string ${tcount}")
s=stmpl.substitute(tcount=3)
print(s)
Related question, not using template strings: Setting fixed length with python