I am making a little program that will read and display text from a document. I have got a test file which looks like this:
12,12,12 12,31,12 1,5,3 ... >
12,12,12 12,31,12 1,5,3 ...
with open('test.txt') as o: for i,t in enumerate(o.readlines(), 1): print ("%s. %s"% (i, t))