
Even if you’ve only dabbled with python for a minute or two, you’ve probably already figured out that you can print variables using placeholders, like this:
#!/usr/bin/env python f = 'Inigo' l = ''Montoya' print "Hello. My name is %s %s. You killed my father. Prepare to die." % f, l

#!/usr/bin/env python fname = 'The' lname = 'Grinch' n = 0 print "I'm " + fname + lname + " and there'll be " + n + " more Christmas's!"

#!/usr/bin/env python first = 'Iron' last = 'Man' print "The truth is... I am %(first)s %(last)s." % globals()