When to use %r instead of %s in Python?
On Learn Python the Hard Way page 21, I see this code example: x = "There are %d types of people." % 10 … print "I said: %r." % x Why is %r used here instead of %s? When would you use %r, and when would you use %s? Answers: Thank you for visiting the … Read more