def price_to_earnings(price, eps):
    """Computes price to earnings ratio.

    @params
    -------
    price: price per share
    eps: earnings per share, calculated by "net income / # of shares"

    returns
    -------
    Returns price to earnings ratio, int or float
    """
    pe = price / eps
    return pe
