❓ Quiz Python

Combine lambda et map.

PYTHONAvancefonctions
20
quiz.py
1
nombres = [1, 2, 3]
2
carres = list(map(lambda x: x ** 2, nombres))
3
print(carres)