import math


def distance (
        p: tuple,
        q: tuple
    ) -> float:
    """ Calculates direct distance between two points given as tuples.

    Args:
        p (tuple):
            A tuple containing x and y coordinates
        q (tuple):
            A tuple containing x and y coordinates

    Returns:
        A float with the distance between given points as value
    """
    return math.sqrt((p[0] - q[0])**2 + (p[1] - q[1])**2)