I have string like below:
[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)]
i need to convert above string to object in python like below:
[('.1', 'apple'), ('.2', 'orange'), ('.3', 'banana'), ('.4', 'jack'), ('.5', 'grape'), ('.6', 'mango')]
is there any efficient way of converting this either by using regex or any other ways?
Thanks in advance