def max2(x, y):
    """
    >>> max2(1, 2)
    2
    >>> max2(1, -2)
    1
    >>> max2(10, 10.25)
    10.25
    >>> max2(10, 9.9)
    10.0
    >>> max2(0.1, 0.25)
    0.25
    >>> max2(1, 'a')
    Traceback (most recent call last):
        ...
    UnpromotableTypeError: Cannot promote types int and string
    """
    return max(x, y)