def ascii(string): total=0 for char in string: total += ord(char) return total