Strings and Console Output


#1

1. # Print the concatenation of "Spam and eggs" on line 3!
2.
3. print"Spam " + "and " + "eggs"

I am now stuck on this one and cannot work with it. some say it is right, but I get an error message that says INVALID SYNTAX


#2

I hope your code doesn't include the numbers because if it doesn't then it should work,

# Print the concatenation of "Spam and eggs" on line 3!

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

If the problem persists try changing your browser or the resolution of your window


#3

what numbers? are you talking about?


#4

and I only have the chrome browser


#5

These ones,

What error message are you receiving?


#6

okay aren't they already there in the first place? to deal with?


#7

just Invalid Syntax error message


#8

I got it though. i deleted the numbers


#9

No, what I meant was like part of your code not like the in-built numbered lines. :slight_smile:

Awesome glad that worked! :grin:


#10

oh okay. yeah but that seemed to work out alrighty.


#11

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