import math


def dist(p: list, q: list) -> float:
    """
    Returns the Euclidean distance between points p and q. Tries to emulate
    Python 3.8's math.dist(p, q) function.
    Citation: https://docs.python.org/3/library/math.html
    :param p: A multi-dimensional (dimension >= 1) point in the form of a list
    :param q: A multi-dimensional (dimension >= 1) point in the form of a list
    :return: Euclidean distance between points p and q
    """
    return math.sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))