Escaping single quote not necessary?


#1

In code:

string_1 = "Camelot"
string_2 = "place"

print "Let's not go to %s. 'Tis a silly %s." % (string_1, string_2)

Why single quote doesn't need to be escaped in "Let's" and " 'Tis" ?


#2

If you begin a string with ", then only " will close it, thus ' has no special meaning in this context and doesn't need escaping.