[EMAIL PROTECTED] writes: > for ch in small: > v = ord(ch)-96 > print v
total = 0 for ch in small: # the += below updates the value of total by adding (ord(ch) - 96) total += (ord(ch) - 96) print "ch:", ch, "total so far:", total -- http://mail.python.org/mailman/listinfo/python-list