import math


def findDistance(A, B):
    """
    In 2D space find the distance between two co-ordinates is 
    known as Eucliciean distance.
    Args
        A: tuple or list of x and y co-ordinates 
            e.g. (1,2) e.g. [1,2]
        B: as A.
    Returns
        distance: float. Decimal value for shortest between A and B
    """
    x = A[0] - B[0]
    y = A[1] - B[1]
    distance = math.sqrt(x ** 2 + y ** 2)  # square root

    return distance