def get_frequency(samples, element) -> float:
    """Find the frequency of the given element in given samples

    Args:
        samples: List of elements
        element: Element whose frequency needs to be determined

    Returns:
        Frequency of the element
    """
    return samples.count(element) / len(samples)