
    Given a sequence of student activity IDs representing completed learning modules, determine if any module has been accidentally assigned twice in the personalized learning path. The system needs to identify any duplicate assignments to prevent students from unnecessarily repeating the same content.
    

    
def test_duplicate(arraynums):
    """
    Given a sequence of student activity IDs representing completed learning modules, determine if any module has been accidentally assigned twice in the personalized learning path. The system needs to identify any duplicate assignments to prevent students from unnecessarily repeating the same content.
    

    """
def test_duplicate(arraynums):
    """
    Given a sequence of student activity IDs representing completed learning modules, determine if any module has been accidentally assigned twice in the personalized learning path. The system needs to identify any duplicate assignments to prevent students from unnecessarily repeating the same content.
    

    """
    nums_set = set(arraynums)
    return len(arraynums) != len(nums_set)