The question is odds([1, 2, 3, 4, 5, 6]) the output must be [1, 3, 5]. I know its simple in list comprehension, or a small function.
def odds(l):
r = []
for n in l:
if n % 2 == 1:
r.append(n)
return(r)```
or
def odds(l):
return [n for n in l if n % 2 == 1]
but i need the output using lambda function shown below
odds = lambda :