def letter_code(letter):
    """Determine the ISO 6346 numeric code for a letter.

    Args:
        letter (str): A single letter.
    
    Returns:
        An integer character code equivalent to the supplied letter.
    """
    value = ord(letter.lower()) - ord("a") + 10
    return value + value // 11