Python: how to merge to display as sentence and display line number
<pre><code>import re
line = "the heart was made to be broken"
line_split2 = re.split(r'[ \t\n\r, ]+',line)

def chunks(line_split2, n):
    for i in xrange(0, len(line_split2), n):
        yield line_split2[i:i+n]

separate_word = list(chunks(line_split2, 3))

import pprint
pprint.pprint(separate_word)

count = 0
for lines in separate_word:
    count = count + 1
    print count
</code></pre>

<p>I am trying to merge list for display as sentence and display line number in front of them.</p>

<pre><code>1 the heart was
2 made to be
3 broken
</code></pre>

<p>Any suggest? </p>
