Blog

What is the output of the following code below?

func = lambda x: bool(x%2)
N = [x for x in range(10)]
for i in N:
if func(i):
print(i)
else:
continue