String Concatenation


#1



https://www.codecademy.com/courses/python-beginner-sRXwR/3/1?curriculum_id=4f89dab3d788890003000096#


An error saying please use the + operator in your code


can anyone help me with this?


my code is
print  "Spam","and", "eggs"


#2

Since the lesson is focused on concatenation it will do well to use it, as opposed the default print behavior. Perhaps this is what the SCT is expecting...

print "Spam" + " " + "and" + " " + "eggs"

#3

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