Question · Cours Python · Module 8: Data science
Créer un tableau NumPy
Comment crée-t-on un tableau NumPy à partir d'une liste Python [1, 2, 3, 4, 5] ?
Réponses possibles
- np.list([1, 2, 3, 4, 5])
- np.array([1, 2, 3, 4, 5])
- np.create([1, 2, 3, 4, 5])
- numpy.new([1, 2, 3, 4, 5])
Tu vérifieras la bonne réponse en résolvant cet exercice dans le jeu CodeWorlds.