I need to write a function to calculate the distance between two points in a 2D space. The coordinates of a point is given by a list of two numbers. I\'m vey new and not sur