filtrer les nombres d 27une liste

Solutions on MaxInterview for filtrer les nombres d 27une liste by the best coders in the world

showing results for - "filtrer les nombres d 27une liste"
Emilie
25 Nov 2016
1>>> a = [1,4,2,7,1,9,0,3,4,6,6,6,8,3]
2>>> b = []
3>>> for x in a:
4...     if x > 5:
5...         b.append(x)
6... 
7>>> b
8[7, 9, 6, 6, 6, 8]
9
similar questions
queries leading to this page
filtrer les nombres d 27une liste