On Sat, Jan 31, 2009 at 4:19 PM, Gabriel Genellina
wrote:
> for line in f:
> do_something_with(line)
Thanks a lot.
CK Raju
--
http://mail.python.org/mailman/listinfo/python-list
En Sat, 31 Jan 2009 08:35:44 -0200, CK Raju
escribió:
I have a text file containing the following alphanumerals.
aa2255
hh11dpdpdpdp22
kkk21lokolkolko33
.
I need to read the contents as single line, one after the other
and append the sum of digits at the end.
aa22
I have a text file containing the following alphanumerals.
aa2255
hh11dpdpdpdp22
kkk21lokolkolko33
.
I need to read the contents as single line, one after the other
and append the sum of digits at the end.
aa225577
hh11dpdpdpdp2233
kkk21lokolkolko3354
..