[Tutor] Summing across a row

Jacob S. keridee at jayco.net
Wed Oct 6 03:16:15 CEST 2004


    I don't know if this will help or not, but try this.

m = open('mytext'.txt)
for line in m:
    linetotal = sum(line)
    print linetotal

    I hope this helps you, even though, as usual, I'm clueless about the
purpose of others' scripts.

Jacob Schmidt

More information about the Tutor mailing list