String Formatting with %, Part 2


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

Please view this link for error :


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.