Using form %(name)format, as shown here : Output Format « Development « Python
- Python
- Development
- Output Format
Using form %(name)format, as shown here

table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
print 'Jack: %(Jack)d; Sjoerd: %(Sjoerd)d; Dcab: %(Dcab)d' % table
Related examples in the same category