def get_first_numeric(s):
    """Return the index of the first numeric character in s, -1 if none
    exists."""
    for i in range(len(s)):
        if s[i] in '0123456789':
            return i
    return -1