Question: python 3 please FOLLOW INSTRUCTIONS CODE: def hashString(string):? 1 def hashString(string): Problem Complete the function hashString () to take in astring, and return the string
python 3 please FOLLOW INSTRUCTIONS
CODE:
def hashString(string):?
1 def hashString(string): Problem Complete the function hashString () to take in astring, and return the string hashed according to the hashing strategy we saw in class, where the string is treated as a base-26 number and each letter has a value (a-1, b-2 -26) Example hashString("dog") returns 3101 (4 26*215 26 1+7*2 6 0) hashString("god") returns 5126 (7* 26 2 15 26 1 4*2 6 O)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
