Why doesn't this string pass?

Hi, I know this question seems very silly but I have done this problem like 8 times and keep getting invalid syntax, with a ^ pointing to the +. I have looked at the solution and it looks exactly the same as the function I have typed. Am i missing something?

def introduction(first_name, last_name):
   return last_name + ", " + first_name + " " +
last_name
1 Like

The last_name variable needs to be on the same line as the return. As it appears now, it is outside of the function. The interpreter is expecting something after the plus and finds nothing, so raises an error.

1 Like