def subtract(a, b):
    """
    Subtracts two numbers.

    >>> subtract(3, 2)
    1
    >>> subtract(2, 3)
    -1

    :param a: first number
    :param b: second number
    :return: difference
    """

    return a - b