Question d’entretien chez Meta

python :average length of words.

Réponse à la question d'entretien

Utilisateur anonyme

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