I\'ve been reading the Python 3.2 docs about string formatting but it hasn\'t really helped me with this particular problem.
Here is what I\'m trying to do:
you want .format(**stats) as that makes stats part of format's kwargs.
This does the job:
stats = { 'copied': 5, 'skipped': 14 }
print( 'Copied: {copied}, Skipped: {skipped}'.format( **stats ) ) #use ** to "unpack" a dictionary
For more info please refer to: