(Hint: regular expressions may be useful.)
ht = Hash Table()
translation =ht.translateHash("hello world") =
print(translation) should return svool dliow
Spaces, punctuation, and all other special characters will be kept the same, only the letters of the alphabet will be converted.
The input alphabet string to setHash must not contain duplicate characters.
setHash will return True if a valid alphabet is given (26 characters, no duplicates).
Otherwise it will return False.
If translateHash is run before setHash, or an invalid alphabet was previously specified, have translateHash return False, else return the translated string.
Uppercase must become lowercase.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.import unittest
import numpy as np
def matrixMult(arr1, arr2):