Printing variables with %r

What if we put the string inside another string?

 1 2 3 4 5 6 os = "Android" device = "mobile" fact = "%s is the most-installed %s operating system in the world." % (os, device) print "As of 2011: %r" % fact 

×