I gave up and just unlocked the solution. I hate to do it, but it's how you learn sometimes. I wouldn't have ever figured it out on my own. At least the positive is that I learned something new. I have completed most of the challenges successfully anyway, so unlocking one once in a while won't kill me.
def word_lengths(lst): return [len(x) for x in lst]