Divide list into multiple lists than find highest average value

Hey guys,
I have a list of many, many numbers (attached text file). My ultimate goal is to find the list with the highest 10 consecutive (the sublists) average values. But I am struggling with making the sublists (as in the picture) from the source (text file) list. When the sublists would be determined I need to find which list has the highest average value and what this value is.
watti - Copy.txt (18.0 KB)

sublist_average.gh (35.3 KB)

PS: the list contains empty items and text, I removed these…

Thank you. Exactly what I needed.

1 Like