import math


def calculateDistance(coordinate1, coordinate2) -> float:
  """Calculates the distance between two 2D coordinates.

  Args:
      coordinate1 (list): x, y coordinates.
      coordinate2 (list): x, y coordinates.

  Returns:
      float: Distance between coordinates.
  """
  deltaX = math.fabs(coordinate1[0] - coordinate2[0])
  deltaY = math.fabs(coordinate1[1] - coordinate2[1])
  return math.hypot(deltaX, deltaY)