code: def differences(scansion: str, candidate: str) -> List[int]:
      
      before = scansion.replace(" ", "")
      after = candidate.replace(" ", "")
      diffs = []
      for idx, tmp in enumerate(before):
          if before[idx] != after[idx]:
              diffs.append(idx)
      return diffs
docs: Given two strings, return a list of index positions where the contents differ.
  
      :param scansion:
      :param candidate:
      :return:
  
      >>> differences("abc", "abz")
      [2]