Consider the following code:
def square(x):
return x**2
def cube(x):
return x**3
in1 = [0, 2, 3]
in2 = [2, 1, 9]
y1 = map(square, in1)
y2 = map(cube, in2)
How to concatenate the two maps objects without explicitly converting the iterators y1 and y2 into iterables?