SHARE
TWEET

2DArray to string, only second dimension

a guest Nov 20th, 2012 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. masivs=[[1, 134.36339858341788], [2, 135.42213795543893], [3, 135.42288168167056] ,[4, 136.63153873524416], [5, 137.9806611477496], [6, 141.71354130007174] ,[7, 140.04878671672139], [8, 139.37653080772935], [9, 137.02667330899328], [10, 135.10994781056445], [11, 133.50157856503978], [12, 132.6172701262019]]
  2. valueMasivs=[]
  3. strings=""
  4. for each in masivs:
  5.     valueMasivs.append(str(each[1]))
  6. strings=', '.join(valueMasivs)
  7. print "["+strings+"]"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top