'convert an array to list in python

my code is : km = KMeans(n_clusters=2, init='k-means++', max_iter=100, n_init=1,verbose=0) predict=[]
predict.append(km.fit_predict(matrix))
the result is :[array([0,0,1,1,0])]

then I want to zip this result by list of string the result of zip is a list with one member because it assume*[array([0,0,1,1,0])]* as a list that has one member.

what should I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source