def integer_to_digit(integer):
    """
    Converts an integer into the corresponding hexadecimal digit.
    The integer given should be between 0 and 15 and return a string.

    :param integer: *(int)*
    :return: the hexadecimal digit representing the integer
    :rctype: *str*
    :UC: 0 <= integer < 16
    :Examples:
    >>> integer_to_digit(0)
    '0'
    >>> integer_to_digit(10)
    'A'
    >>> integer_to_digit(-3)
    Traceback (most recent call last):
    AssertionError: Veuillez entrer un entier entre 0 et 15
    
    >>> integer_to_digit(3.2)
    Traceback (most recent call last):
    AssertionError: Veuillez entrer un entier
    """

    assert(type(integer) == int), "Veuillez entrer un entier"
    assert(integer >= 0 and integer <= 15), "Veuillez entrer un entier entre 0 et 15"
    
    if(integer <= 9):
        res = chr(ord('0') + integer)
    else:
        res = chr(ord('A') - 10 + integer)
    return res