input: from typing import List
  
  def expand_list(list: List) -> List:
      """ Analyze and fix the following Python function to ensure it correctly expands a list without causing unexpected behavior due to modifying the list while iterating over it.
      >>> expand_list([1, 2, 3])
      [1, 2, 3, 1, 2, 3]
      """
output:     expanded_list = list[:]
      for item in list:
          expanded_list.append(item)
      return expanded_list