Answers for "função map python"

4

map in python

#Syntax
map(functions, iterables)
Posted by: Guest on July-17-2020
0

função map python

lista =  [1, 2, -3, 4, 5, -9]
def quadrado(n):
    return n*n
 
map(quadrado, lista)
[1, 4, 9, 16, 25, 81]
Posted by: Guest on May-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language