input: Write a function to create a new list that contains elements from another given list. If the given list is empty, return an empty list.
  assert generate_list([1, 2, 3, 4, 5])==[1, 2, 3, 4, 5]
  assert generate_list([0, -1, 5, 3, 2])==[0, -1, 5, 3, 2]
  assert generate_list([])==[]
output: def generate_list(lst):
      if not lst:
          return []
      return lst