why not?

kwakukwatiah at gmail.com kwakukwatiah at gmail.com
Mon Jan 21 18:02:10 CET 2013


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(),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130121/c5b6a047/attachment.html>


More information about the Python-list mailing list