input: Write a function to calculate the Euclidean distance between two points in a 2D or higher-dimensional space. The function should take two list-like inputs where each list represents the coordinates of a point. The function should return the Euclidean distance between these two points. If the input points are empty, the function should return 0.
  
  ### Example:
  assert euclidean_distance([1, 2, 3], [4, 5, 6])==5.196152422706632
  assert euclidean_distance([0, 0], [3, 4])==5.0
  assert euclidean_distance([1, 1, 1], [2, 2, 2])==1.7320508075688772
  assert euclidean_distance([], [])==0
  assert euclidean_distance([1, 2], [3, 4])==2.8284271247461903
output: def euclidean_distance(point1, point2):
      if not point1 or not point2:
          return 0
      return sum((x - y) ** 2 for x, y in zip(point1, point2)) ** 0.5