Maybe this will explain what I want to do even though this code is none functioning:
list = ['1', '2', '3', '4', '5', '6'] for i in list: while i [3] or more in i: composite_list = [list[x:x+4] for x in rangee90, len(list),5]