SyntaxFix
Write A Post
Hire A Developer
Questions
If you are looking for readability, I believe that this is that code:
print '%(kg).2f kg = %(lb).2f lb = %(gal).2f gal = %(l).2f l' % { 'kg': var1, 'lb': var2, 'gal': var3, 'l': var4, }