I don't understand how I didn't space it


#1

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

What I typed:

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


#2

Just match you string to instruction's(output string)!
hint**


#3

i don't see spaces anywhere? For example if you would have:

"hello world"

and you would use two separate strings but you do want spaces you have two options:

"hello " + "world"
"hello" + " world"

only the spaces within the strings are displayed in output


#4

that didn't help. now I did this:

print "Spam", "and", "eggs"

this is the error message:

Oops, try again. Make sure to use the + operator in your code!


#5

can you define difference between "and" and "and " ? :slight_smile:


#6

this is what I've done:

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

Error message:

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


#7

"eggs" and " eggs" ?


#8

? I still don't understand


#9

? I don't understand


#10

can you read the instructions once again , while looking I mean a thoughtful look!


#11

your not helping i need specfics if I understood the oops i wouldnt be here


#12

your not helping i need specfics if I understood the oops i wouldnt be here

I'll give specifics.

Can you tell me difference between them...

"Spam" and "Spam "
"and" and "and "

update..
your code...
print "Spam " + " and " + " eggs"

Can you match what mistakes you're doing there ?


#13

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

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


#14

Your code...
print "Spam " + " and " + " eggs"


can you observe the difference ?


#15

thank you for the help


#16

did it solved the issue?


#17

yes it did thanks again


#18

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