as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a program the calculates the distance between two points.
user
def distance(x1, y1, x2, y2): 
    # calculate distance using euclidean distance 
    dist = ((x2 - x1)**2 + (y2 - y1)**2)**0.5 
    return dist 
  
# driver code 
# output should be 5.0
x1 = 3
y1 = 4 
x2= 6
y2 = 8
print(distance(x1, y1, x2, y2))
assistant