def parse_input(inp, options):
    """Parses user-provided input
    
    Check if the given input can be seen as an index of the options list.
    
    Parameters
    ----------
    inp : str
        User input
    options : list
        List of option strings
    
    Returns
    ----------
    parsed_choice
        The index corresponding to the input if index is valid for the options list
        else None
    """
    
    try:
        parsed_choice = int(inp)
        if parsed_choice >= 0 and parsed_choice < len(options):
            return parsed_choice
    except:
        return None