Guest User

Untitled

a guest
Feb 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <1.0>The man went up the hill.
  2. <1.1>The woman sat on the bench.
  3.  
  4. <1.0>The
  5. <1.0>man
  6. ...
  7. <1.1>The
  8. <1.1>woman
  9.  
  10. text = """<1.0>The man went up the hill.
  11. <1.1>The woman sat on the bench."""
  12.  
  13. for line in text.split("n"):
  14. parts = line.split(">")
  15. number = parts[0] + ">"
  16. for word in parts[1].split(" "):
  17. print number + word
Add Comment
Please, Sign In to add comment