[an error occurred while processing this directive] [an error occurred while processing this directive]

Python – La fonction map()

map() applique une fonction spécifiée à chaque élément d’une séquence.

La syntaxe est : map(fonction, séquence iterable)

La fonction retourne un objet « list » contenant les éléments modifiés par la fonction.

Pour visualiser cet objet la fonction list() peut être utilisée.

La syntaxe est : list(map(fonction, séquence iterable))

La syntaxe est : map(fonction, liste)

Publier par sm2017 dans Python - Les fonctions Commentaires fermés sur Python – La fonction map()
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]