12/16 concatenation


#1


what is wrong with my code?
print= "Spam "+"and "+"eggs"


#2

remove the equals sign " = "


#3

print "Spam "+"and "+"eggs"
still this doesn't work. Am I wrong?


#4

you are probably doing something wrong

maybe add spaces between the plus signs?

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


#5

Now I got it! thanks!


#6

Hi I joined codeacademy yesterday and started learning python. Today I faced similar concern with the string concatenation and found out that when I type caps "P" in Print then it shows error however there is no concern when I type print in small characters. The rest of the statement remains same . hope this helps
:slight_smile: I think its a bug.

learning through codeacademy is great :slight_smile:


#7

"Spam " + "and " both have spaces after the words in the quotes.


#8

it still doesn't work


#9

Don't leave a space after the eggs. Only on "Spam " and the "and ".


#10

Use the word print instead of Print