In one of the exercises, we make a hash function by using the string method encode. We then use sum to add up the values I am guessing. But I am confused about how we can use sum, since the encoding does not return only numbers, and neither an array.
The string is: pythön!
The encoded version (with ignore) is: b’pythn!’
The encoded version (with replace) is: b’pyth?n!’