Can you simply explain what they want from me in coderbyte challenge? I am really new and stuck
Have the function HDistance(strArr) take the array of strings stored in strArr, which will only contain two strings of equal length and return the number of characters at each position that are different between them. For example: if strArr is [“house”, “hours”] then your program should return 2. The string will always be of equal length and will only contain lowercase characters from the alphabet and numbers.
It may be easier to help if you share your code.
The return should not be in the loop.
length = min(len(strArr), len(strArr))
h = 0
for j in range(length):
if (strArr[j] != strArr[j]):
h += 1