In Python 3


#1



This is how you'd do it in Python 3.
Exercise 4.3: String Formatting with %, Part 1


string_1 = "Camelot"
string_2 = "place"

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


#2

That's great, but codecademy currently uses Python 2.7


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.