Advertisement
Guest User

2DArray to string, only second dimension

a guest
Nov 20th, 2012
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  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+"]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement