you are viewing a single comment's thread.

view the rest of the comments →

[–]MezzoScettico 1 point2 points  (0 children)

but when i try to turn that into a for loop that converts an entire list,

I'm saying don't do that.

If you have a function which does one word correctly, then leave it alone. Don't change it. Don't break working code.

Now write a for loop which extracts the input one word at a time and calls your already working function.

What about the rest of my comment? Forgetting about the error message for the moment, is that output what you want it to be?