input: Write a function that calculates the Euclidean distance between two points. If the points are represented as lists of the same length, the function should return the distance using the Euclidean formula. If the lists are of different lengths, the function should raise a ValueError.
  
  def euclidean_distance(point1, point2):
      if len(point1) != len(point2):
          raise ValueError("The lengths of the two points must be equal")
          
      sum_squared_distance = 0
      for i in range(len(point1)): 
          sum_squared_distance += (point1[i] - point2[i])**2 
      return sum_squared_distance**0.5
  
  assert euclidean_distance([1, 2], [4, 6])==5.0
  assert euclidean_distance([0, 0], [3, 4])==5.0
  assert euclidean_distance([1, 1, 1], [4, 4, 4])==5.196152422706632
  assert euclidean_distance([-1, -1], [2, 3])==5.0
  try:
      euclidean_distance([1, 2], [3, 4, 5])
      assert False  # This should not execute because an exception should be raised
  except ValueError:
      assert True
output: def euclidean_distance(point1, point2):
      if len(point1) != len(point2):
          raise ValueError("The lengths of the two points must be equal")
          
      sum_squared_distance = 0
      for i in range(len(point1)): 
          sum_squared_distance += (point1[i] - point2[i])**2 
      return sum_squared_distance**0.5