I have a list of numbers like
example list = [ 1,2,3,5,10,11] I want to split the list based on sequence
list1 = [1,2,3] list2 = [5] list3 = [10,11] But I am confused how to bring this to the code can anyone please help me regarding this, Thanks.
list2should be in that output? Are you looking to create multiple lists where the numbers are in sequence from the first list?