I want to read a tuple from a file and convert it to a list.
The file has this: (1,2,3)
My code:
with open('scores.txt','r+') as scores:
score_file=list(scores.read())
print(score_file)
The output is: ['(', '1', ',', '2', ',', '3', ')']
but I want that: [1,2,3]
How can I do this: