What does this program print?

from map, filter and reduce
Python 3.14 beginner 2 min

What does this program print?

Python
def double(value):
    print(f"double {value}")
    return value * 2

results = map(double, [1, 2])
print("ready")
print(next(results))
print(list(results))
print(list(results))
Open in playground
Report an error