no, this shouldn't work. I was tricking you. I on purpose was using the word append rather then join. append() is a function which appends items to lists. you will need to approach it differently:
total = 0
test = 12345
for i in str(test):
total = total + int(i)
i need to use
+ to join the string (the demonstration above is with numbers, but it works the same for stings, can't do everything for you)
words, the function parameter contains your list:
n = ["Michael", "Lieberman"]
i in your for loop will contain the words, not the indexes. So no need for
You need to use the function parameter, given the exercise is going to test multiply lists.
if you insist on using indexes, you will have to use
careful with the indention of your return, again...