a function that determines a string's hask key. The average position of each letter in the alphabet divided by the size of the table yields the hash key.
def char_position(char):
alphabet = list("abcdefghijklmnopqrstuvwxyz")
return alphabet.index(char)
def hash_key(string):
total = 0
for char in string.lower():
total += char_position(char)
return total / len(string)
Learn more about hash here
https://brainly.com/question/13451676
#SPJ4