Meta Interview Question

python :average length of words.

Interview Answer

Anonymous

Mar 30, 2021

def AvgWordLength(lst): len_list = [len(x) for x in lst] return int(sum(len_list) / len(lst)) if len(lst) > 0 else 0

1