Still getting the same error "Oops, try again


I am still getting the same error "Oops, try again. join_strings(['x', 'y', 'z', 'a']) returned 'Lieberman Michael ' instead of 'xyza' "
Not sure what exactly it is, my code is

n = ["Michael", "Lieberman"]
def join_strings(words):
result = ""
for i in range(len(n)):
result = n[i] + result
return result

print join_strings(n)

Using Strings in Lists in Functions

This is referring to the object that is outside of the function and ignoring the parameter, words

for i in range(len(words)):


The instructions state to make sure there is no space between the words, just as the error message shows.


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