Given the list below:

```
#123
*21
*23
*56
*1
*3
#923
*21
*23
*56
*1
*3
#165
...

```

I want to find first the specific line with #

For example: #923

And then print all the numbers prefixed with \* until the next occurrence of a line starting with #.

This is what I tried but it doesn't work:

```
for i in data:
     ndata = i.split("::")
     check = list(ndata[0])
     if check[0] == '*':
        songs += ndata[0] + "\n"
     if check[0] == '#':
        break

```

It does print the \* and breaks on lines starting with # but the problem is that it's starting from the first line and not from the one containing #923.

I will appreciate any help and tips!