i want to have this form
[(1, 'A'), (1, 'd'), (1, 'e'), (1, 'l'), (1, ' '), (1, 'a'), (1, 'n'), (1, 'd'), (1, ' '), (1, 'm'), (1, 'o'), (1, 'h'), (1, 'a'), (2, 'm'), (1, 'e'), (1, 'd')]
but i got this
["(1, 'A')", "(1, 'd')", "(1, 'e')", "(1, 'l')", "(1, ' ')", "(1, 'a')", "(1, 'n')", "(1, 'd')", "(1, ' ')", "(1, 'm')", "(1, 'o')", "(1, 'h')", "(1, 'a')", "(2, 'm')", "(1, 'e')", "(1, 'd')"]
and here is my code
def openRLEFile():
file = askopenfile(parent=root,title='Select a File')
global filename
filename = file.name
content = [x.strip('\n') for x in file]
tDecompressed = decodeRLE(content)
text.delete(0.0,END)
text.insert(0.0,tDecompressed)
file.close()