Assume **TEST.txt** has contents `3,6,8,10,9,9,5,8`

In Python, I want to import the contents of this text file into list `L`. Here's one of many attempts:

```
with open('TEST.txt') as f:
    L = f.readlines()

print(L)

```

The output is `['3,6,8,10,9,9,5,8']`. How can I change this to `[3,6,8,10,9,9,5,8]` ?