Error concatenating Python string with variable massage


I’m getting this error, someone help me !

Welcome minhtrtrn!

Your code looks right, and displays what it should. Maybe it has an error because you didn’t uncomment their print statement, instead made your own?

EDIT: Did you also use your own code? I went back to the same exercise, and this code isn’t even close to the original. That might be why the value for message doesn’t match the expected one.

I took the code of the original code to test it but it still doesn’t work

Okay, may I please see a screenshot of the new (original) code and the error?


here it is my friend

Thank you!

The original code was actually this, though:

string1 = "The wind, "

string2 = "which had hitherto carried us along with amazing rapidity, "

string3 = "sank at sunset to a light breeze; "

string4 = "the soft air just ruffled the water and "

string5 = "caused a pleasant motion among the trees as we approached the shore, "

string6 = "from which it wafted the most delightful scent of flowers and hay."

# Define message below:

#print(message)

This is what you were supposed to apply your knowledge to, which might be the issue.

Thank you ! have a good day

1 Like

You’re welcome; you too! :blush: