Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <1.0>The man went up the hill.
- <1.1>The woman sat on the bench.
- <1.0>The
- <1.0>man
- ...
- <1.1>The
- <1.1>woman
- text = """<1.0>The man went up the hill.
- <1.1>The woman sat on the bench."""
- for line in text.split("n"):
- parts = line.split(">")
- number = parts[0] + ">"
- for word in parts[1].split(" "):
- print number + word
Add Comment
Please, Sign In to add comment