How to I convert a string that contains a list of sets to list without changing the order of the sets?
How to I convert a string that contains a list of sets to list without changing the order of the sets? Question: I have a string that contains a list of sets – ‘[{13,18},{14,19}]’ I want it to be like this – [‘[13,18]’,'[14,19]’] When I use ast.literal_eval() the order of the sets gets changed – …