(num)
return val
Convert integer to A-P string representation.
Convert integer to A-P string representation.
Convert integer to A - P string representation .
def Int2AP(num):

    """Convert integer to A-P string representation."""

    val = b''; AP = b'ABCDEFGHIJKLMNOP'
    num = int(abs(num))
    while num:
        num, mod = divmod(num, 16)
        val = AP[mod:mod+1] + val
    return val
def Int2AP ( num ) : val = b'' AP = b'ABCDEFGHIJKLMNOP' num = int ( abs ( num ) ) while num : num , mod = divmod ( num , 16 ) val = AP [ mod : mod + 1 ] + val return val