def char_at(s, index):
    """
    Return the str[index] in int class.

    Args:
        s:
        index:
    Returns:
        value (int): the int value of s[index], -1 for IndexError.
    """
    if index < len(s):
        value = ord(s[index])
    else:
        value = -1
    return value