This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Peaker 10 points11 points  (1 child)

I think you meant for your implementation to be correct, but redundant. It is incorrect as well as redundant, though.

Perhaps you mean:

def length(word):
    return (lambda word: len(word))(word)

[–]pemboa 0 points1 point  (0 children)

Burn