def net_profit_margin(net_income, revenue):
    """Computes net profit margin.

    @params
    -------
    net_income: net income
    revenue: revenue (or sales)

    returns
    -------
    Net profit margin, int or float

    explanation
    -----------

    """
    return net_income / revenue
