import math


def get_percentile(data, p):
    """
    Given a list of sortable things, returns the Pth percentile of that list
    :param data: list of sortable things
    :param p: Pth percentile to get (from 0 to 100)
    :return: an element from data that’s the Pth percentile
    """
    rank = math.ceil((p/100) * len(data) - 1)
    return sorted(data)[rank]