def top_n(lis, n):
    """Get index of top n item from list with value
    
    Args:
        lis:``list``
            list
        n:``int``
            number of top value
            
    Return:
        dict of top value and index: ``dict``
        
    """
    top = sorted(range(len(lis)), key=lambda i: lis[i], reverse=True)[:n]
    value = [lis[i] for i in top]
    return {"index": top, "value": value}