I have this list nums=[1,2,6,7,8,9,44,90,110,111,112]
I want to divide them into sub lists based on sequence
44 : there is no number before and after ;Excluded
90 same as 44
so the final output will be
finall_lst=[[1,2],[6,7,8,9],[110,111,112]]
I want that list to be dynamic so that it can receive any number of items even millions
thanks