Python section 12 string concatenation


Hey There! I'm having hard time figuring out my mistake. what's the problem?!?

Error Message I'm Receiving
File "python", line 3
Print "Spam " + "and " + "eggs"
SyntaxError: invalid syntax

Replace this line with your code.


Keywords are written in lowercase.

print vs Print


i have :

Oops, try again. It looks like you printed "Spam and eggs" instead of "Spam and eggs"

where is the problem ?


This passes for me...

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


it works but i don't understand cuz i beleve i put the same code


it putted

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


i putted two spaces between Spam and " ,d two spaces between and and "

why did it not work ?


I don't have an explanation to offer. Not able to reproduce your error condition.


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