Posts by Paulo Lopes • 31 points
1 post
-
3
votes1
answer602
viewsQ: When to use map() and filter() in Python?
Good afternoon , I have a question regarding these functions I will give as an example some codes: numeros = list(map(lambda x: x-1 , [2, 3, 4, 5])) print(numbers) Output: [1, 2, 3, 4] Here in this…
pythonasked Paulo Lopes 31