Advertisement
Guest User

text split

a guest
Jul 4th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. text=open("text.txt",'r')
  2. lines = text.readlines()
  3. coord =[]
  4. for line in lines:
  5.     words=line.split("-")
  6.     coord+=words
  7. print coord[0]
  8. print coord[1]
  9. print coord[2]
  10. print coord[3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement