On 22/01/13 04:02, kwakukwat...@gmail.com wrote:
f = open(r'c:\text\somefile.txt')
for i in range(3):
        print str(i) + ': ' + f.readline(),
please with the print str(i) + ‘: ‘ + f.readline(), why not print str(i)
+ f.readline(),

Try running both code. What do you see? What's the difference? When do you think you might want one or the other?


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to