I have a file with data like:

```
POTENTIAL
TYPE               1
 -5.19998150116627E+07 -5.09571848744513E+07 -4.99354600752570E+07 -4.89342214499422E+07 -4.79530582388520E+07
 -4.69915679183017E+07 -4.60493560354389E+07 -4.51260360464197E+07 -4.42212291578282E+07 -4.33345641712756E+07
 -4.24656773311163E+07 -4.16142121752159E+07 -4.07798193887125E+07 -3.99621566607090E+07 -3.91608885438409E+07
 -3.83756863166569E+07
 -8.99995987594328E+07 -8.81884626368405E+07 -8.64137733336537E+07 -8.46747974037847E+07 -8.29708161608188E+07
 -8.13011253809965E+07 -7.96650350121689E+07 -7.80618688886128E+07 -7.64909644515842E+07 -7.49516724754953E+07
 -7.34433567996002E+07 -7.19653940650832E+07 -7.05171734574350E+07 -6.90980964540154E+07 -6.77075765766936E+07
 -6.63450391494693E+07 

```

**Note as per Nsh's comment** these data are not single line. They always have 5 data per line, and as per this example, 4 row, with only one data in 4th row. So, I have 16 float spread over 4 line. I always know the total number (i.e. 16 in this case)

My aim is to read them as a list (please let me know if there is better things). The row with the single entry denotes end of a list (e.g. the list[1] ends with `-3.83756863166569E+07`).

I tried to read it as:

```
    if line.startswith("POTENTIAL"):
        lines = f.readline()
        if lines.startswith("TYPE  "):
            lines=f.readline()
            lines=lines.split()
            lines = [float(i) for i in lines]
            pots.append(lines)
        print(pots)

```

which gives result:

```
[[-51999815.0116627, -50957184.8744513, -49935460.075257, -48934221.4499422, -47953058.238852]]

```

i.e. just the first line from the list, and not going any further.
My aim is to get them as different list (possibly) as:

```
pots[1]=[-5.19998150116627E+07....-3.83756863166569E+07]
pots[2]=[-8.99995987594328E+07....-6.63450391494693E+07]

```

I have read searched google extensively (the present state itself is from another SO question), but due to my inexperience, I cant solve my problem.

Kindly help.