Discuss / Python / list

L1 = list(i for i in range(1, 20) if is_odd(i) )

print(L1)

L2 = list(filter(lambda n:n % 2  , range(1, 20)))

print(L2)


  • 1

Reply