Python section 12 string concatenation


#1

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


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


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


Replace this line with your code.


#2

Keywords are written in lowercase.

print vs Print

#4

i have :

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

where is the problem ?


#5

This passes for me...

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

#6

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


#7

it putted

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


#8

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

why did it not work ?


#9

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


#10

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