SyntaxFix
Write A Post
Hire A Developer
Questions
You should use python Explicit Conversion Flag PEP-3101
'My name is {0!s:10} {1}'.format('Dunkin', 'Donuts')
'My name is Dunkin Donuts'
or
'My name is %-10s %s' % ('Dunkin', 'Donuts')
https://www.python.org/dev/peps/pep-3101/