Convert from array to list or tuple

To create an array back to a list or tuple, we can use the standard python functions list(s) and tuple(s) which take sequence s as the input argument and return a list and tuple, respectively:
>>>import numpy as N
>>> a = N.array([1, 4, 10])
>>> a
array([ 1,  4, 10])
>>>list(a)
>>> tuple(a)
(1, 4, 10)

1 komentar:

  1. How To Make Money On Sports Betting
    Online sports betting is available for a whole host 1xbet login of US and European sports betting markets. https://aprcasino.com/pluscasino/ Some US herzamanindir states, like Louisiana and New Jersey, https://septcasino.com/review/merit-casino/ allow หาเงินออนไลน์

    OdgovoriIzbriši