Functions
6 / 20
EasyOutput prediction

map() returns an iterator

What does this code print?

nums = [1, 2, 3]
doubled = map(lambda x: x * 2, nums)
print(type(doubled).__name__)

← → arrow keys to navigate

Sign in to save your progress.