I'm looking for a way to create multiple lists from one large list.

What I want to do is to filter out different digit groups (amounts of fruits sold each week) form a list. Each group of digits should be in a separate list when it hits '\*\*\*\*\*\*' string that indicates where each group should end.

```
Example list:

['apples', '1000', '2000', '2500', '******', 'oranges', '5000', '150', '******']

```

So far I've got this:

```
list = []
for i in mainList:
        if i.isdigit():
            list.append(i)
    print(list)

```

However, my code prints everything in one list like that:

```
#Ouput = ['1000', '2000', '2500', '5000', '150'] 

```

How can divide the output into separate lists so that each fruit group is printed in a separate "blocks" and all of them are part of a larger list?

The result I'm looking for should look like this:

```
[['1000', '2000', '2500'], ['5000', '150']]

```

So far I've tried this:

```
for i in mainList:
   if '******' in i:
       break
   if i != '******':
       result.append(i)

```

But this returns the same list and I was expecting it to break the loop at the first `'******'` breakpoint. I am struggling to separate each part of the list after the `'******'` delimiter.

I'd appreciate any help I can get.