input: 
  def divide_in_two_equal_parts(lst):
      target = sum(lst) // 2
      part1 = []
      part2 = []
      left_sum = 0
      right_sum = 0
      
      for num in lst:
          if left_sum <= right_sum:
              left_sum += num
              part1.append(num)
          else:
              right_sum += num
              part2.append(num)
           
      return part1, part2
  
  # Test case
  # Input: [2, 3, 4, 5, 6, 7]
  # Output: (left: [2, 3, 4], right: [5, 6, 7])
  
output:     if left_sum == target and right_sum == target:
          return part1, part2
      else:
          return None