Posts by Uéliton Viana • 11 points
1 post
-
1
votes5
answers7817
viewsA: Sum of each element of two lists
You can use Python’s own function, map(). She gets two values, one action and one target: map(ação, alvo) using a simple lambda you get the result in a simple line: A = [1, 2, 3, 4] B = [2, 4, 5, 6]…