input: Write a function to calculate the distance between two points on a two-dimensional plane. The function should take two tuples (or lists) as input, each containing the coordinates (x, y) of the two points. The function should return the distance as a float.
  
  def calculate_distance(point1, point2):
      x1, y1 = point1
      x2, y2 = point2
      return sqrt((x2 - x1)**2 + (y2 - y1)**2)
  
  assert calculate_distance((3, 4), (-9, -2))==sqrt(193)
  assert calculate_distance((0, 0), (1, 1))==sqrt(2)
  assert calculate_distance((5, 0), (5, 0))==0.0
  assert calculate_distance((-3, -4), (9, 2))==sqrt(170)
  assert calculate_distance((0, 0), (0, 0))==0.0
output: def calculate_distance(point1, point2):
      x1, y1 = point1
      x2, y2 = point2
      return ((x2 - x1)**2 + (y2 - y1)**2)**0.5