Question #868

Which method will transform the NumPy array below to the the list [1, 2, 3]?
import numpy as np
my_array = np.array([1, 2, 3])

With my_list1 = [my_array] , my_list1 will become [array([1, 2, 3])] , not [1, 2, 3] ! (programiz.com/python-programming/list-comprehension)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵