Meta interview question

python :average length of words.

Interview Answer

Anonymous

30 Mar 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