String Concatenation


#1

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

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

I donot get it.whats wrong?


#2

There is a space at the beginning of the string here,

" Spam
it should be,
"Spam


#3

print "Spam " + "and " + "eggs" @abenwong

note the spacing :wink:


#4

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