Onzaines à gogo, le corrigé
Mathilde a trouvé un nombre de quatre chiffres dont
def liste_chiffres(n): L=[] while n!=0: L.append(n%10) n=n//10 L.sort() return L print(liste_chiffres(637)) S=[] for N in range(1000,10000): if N%11==0 and sum(liste_chiffres(N))==11: T.append(N) print(T)