When you defined the method characters, you said that it takes one argument, called nameList, but when you called it inside of the main method, you don't give it any arguments, if you use
characters(nameList)
in your main method, this should fix your error.
Also, your code will not give you the lengths of the different strings in nameList, rather it will give you a list full of the length of nameList. With the given list, you would get
[5, 5, 5, 5, 5]
because the expression that you append to the list is len(nameList), when it should be len(i).
Finally, List.append() will append to the list, so you don't need to use an = sign. If you replace the line with:
outlst.append(len(nameLst[i]))
This should give you the correct output.
Edit: I just realized that you redefine nameLst inside of the characters function. It is not necessary to have nameLst both inside and outside of the function. Either define characters with no arguments and define nameLst inside of characters, or add nameLst as an argument and don't define it inside of the function.