String Formatting % operator inserts values into a template string (ala C printf) % () "Slots" specify width, precision, and type of value %. Examples >>> "Hello %s %s, you owe %d" % ("Mr.", "X", 10000) 'Hello Mr. X, you owe 10000' >>> "ans = %8.3f" % 3.14159265 'ans = 3.142' print "%10.2f" % x # apparently, a throwback :-)