# coding: latin-1 y = [ i for i in range(0,5) if i % 2 == 0] # sélection les éléments pairs print y # affiche [0,2,4] z = [ i+j for i in range(0,5) \ for j in range(0,5)] # construit tous les nombres i+j possibles print z # affiche [0, 1, 2, 3, 4, 1, 2, 3, 4, 5, 2, # 3, 4, 5, 6, 3, 4, 5, 6, 7, 4, 5, 6, 7, 8]