input: from typing import List
  
  def expand_list(lst: List) -> List:
      """ Expands the given list by multiplying its elements.
      However, the function has a potential error where it modifies the list
      while iterating over it, which can lead to unexpected behavior.
      >>> expand_list([1, 2, 3])
      [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]
      """
output:     result = []
      for item in lst:
          result.extend([item] * len(lst))
      return result