How does my code differ from the solution?

to_you = “”“Stranger, if you passing meet me and desire to speak to me, why
should you not speak to me?
and why should I not speak to you?”""
print(to_you)

keep getting “Did you set to_you to the given Whitman poem?”

1 Like

I am getting the same and can’t seem to see how my entry is different to the solutions - they seem to be written out the same for me? Did you manage to get it to run eventually?

In python, you can make a comment like this:

"""This is a comment"""

And in your code, you used three quotation marks. This means python reads the string a a comment. You could try wrapping the quote in single quotation marks (‘Text here.’)

Link to exercise: Learn Python 3: Syntax: Multi-line Strings

The instructions ask the user to assign the following to the variable to_you:

Stranger, if you passing meet me and desire to speak to me, why
  should you not speak to me?
And why should I not speak to you?

Note that the second line of the string begins with two spaces. They should be included in the string that is assigned.

Also note that a multi line-string is actually just a string. It is not a comment, even though some programmers use it as such. Delimiting a string with """ at both ends does not create a string that differs in type from one that is created via using ''', ", or ' as the delimiter. Using """ or ''' as delimiters simply makes it easier to include quotes or line breaks within.