ztlevi
5/9/2017 - 6:51 PM

Print with other strings

Print with other strings

string1 = "Camelot"
string2 = "place"

# python2
print "Let's not go to %s. It's a silly %s." % (string1, string2)

# python3
print("Let's not go to %s. It's a silly %s." % (string1, string2))