[Solved] Python: Counting a list and displaying a range of the count
[ad_1] In[2]: data = [1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1] In[3]: from itertools import groupby …: …: dex = 1 …: result = [] … Read more