12/16 Lists and Function problems


how do i pass 12/16? i have been working on it for a few days now.

my code:


See the error in the console window? It is telling you that you cannot call a list. We can call functions and classes, and also some other objects are callable if they want to be, but lists are not callable.

What's the syntax for calling something?

Where do you have a list?

See anywhere that you call a list? What were you trying to do there? What is the syntax for that?


This worked for me. I hope this helps :slightly_smiling:

n = ["Michael", "Lieberman"]

def join_strings(words):
    result = ""
    for eachword in range(len(words)):
        result = result + words[eachword]
    return result
print join_strings(n)


thanks! my fault lied in using parenthesis (incompatible with lists), when i needed brackets [standard,for,lists]


Ah yes, I see your error now. Glad you solved the problem :slightly_smiling: