+ 2

What option is better?

l1 = list(range(10)) or l1 = [n for n in range (10)] a = lambda x: x%2!=0 print(list(filter(a, b)))

8th Sep 2017, 9:07 PM
Dave David
Dave David - avatar
2 Respostas
+ 2
first one
8th Sep 2017, 11:59 PM
Mima_nf
Mima_nf - avatar
+ 1
thanks Mima_nf
9th Sep 2017, 8:20 AM
Dave David
Dave David - avatar