class Phrase: def __init__(self,phrase): L = phrase.split() self.mots = [] for m in L: self.mots.append(Mot(m))