def remove_character_at(str, idx):
    """Removes the character from str at index idx, returning the remaining string
    str, int -> str

    >>> remove_character_at("boats", 2)
    'bots'
    """
    return str[:idx] + str[idx+1:]