String Formatting with %, Part 2


#1

When I answer the third question and hit return, I get this error:

Please view this link for error : https://www.codecademy.com/forum_questions/524b9b32f10c608a22000bde


#2

You have to tell it why type of string format you are using,

Check this out.

You have to do,

a = "String"
print("%s" % a)
# The s after the % tells it that it is a string

This is important because if you do not do this then the interpreter can not understand you.