Equivalent or Not?

Report a typo

Suppose we have x_list = [1, 2, 3, 4] and y_list = [10, 11, 12, 13].
Consider the following pieces of code:

A.

result = list(map(lambda x, y: x + y, x_list, y_list))
print(result)

B.

result = x_list + y_list
print(result)

What are the outputs for A and B?

Select one option from the list
___

Create a free account to access the full topic