code: def stress_positions(stress: str, scansion: str) -> List[int]:
      
      line = scansion.replace(" ", "")
      stresses = []
      for idx, char in enumerate(line):
          if char == stress:
              stresses.append(idx)
      return stresses
docs: Given a stress value and a scansion line, return the index positions of the stresses.
  
      :param stress:
      :param scansion:
      :return:
  
      >>> stress_positions("-", "    -  U   U - UU    - U U")
      [0, 3, 6]