Okay so I have this list of tuples:

```
[(0, 'Paper 1.jpg'), (1, 'Paper 2.jpg'), (2, 'Paper  3.jpg'), (0, 'Paper 4.jpg'), (1, 'Paper 5.jpg'), (2, 'Paper 6.jpg'), (0, 'Paper 7.jpg'), (1, 'Paper 8.jpg')]

```

And basically I just want to save this list either to a .txt file or a .json file and read it elsewhere.

The problem is that when I save it as a .txt file; when I try to read it, Python takes this as a string. And I can't convert this string of list of tuples to its original state.

Or when I write this to a .json file, JSON doesn't know what a tuple is and saves all the tuples in the list as a list, so I got a nested list which ruins the whole purpose.

Can anybody help me on this?

I've never worked with .xml file, maybe I should save this list in an .xml file?