I use from Dijkstra algorithm in my code and it returns output that there is in below: How can I convert this:
deque(['[5.0, 10.0]', '[7.5, 9.0]', '[8.8, 8.48]', '[11.261467889908257, 9.956880733944955]', '[11.5,
9.45]', '[14.4, 8.0]', '[15.47191011235955, 10.382022471910112]', '[17.0, 10.0]'])
<class 'collections.deque'>
to list of list, like this:
[[5.0, 10.0], [7.5, 9.0], [8.8, 8.48], [11.261467889908257, 9.956880733944955], [11.5,
9.45], [14.4, 8.0], [15.47191011235955, 10.382022471910112], [17.0, 10.0]]
I want to have a list of lists that I can access to elements of the list and work with them.
There is another way to solve this problem instead of importing ast.