Что выведет код?
def func(x):
if x < 3:
return x
y = filter(func, (0, 1, 2, 3, 4))
print(list(y))
def func(x):
if x < 3:
return x
y = filter(func, (0, 1, 2, 3, 4))
print(list(y))