Python convert different depth list of tuples to flatten list of tuples
Python convert different depth list of tuples to flatten list of tuples Question: I have a tuple of characters like such: p= [((4.0, 4.0), ‘->’, ((4, 2), (4, 8)), ((2, 2), (5, 5))), ((4.0, 7.0), ‘->’, ((4, 2), (4, 8)), ((5, 6), (3, 8)))]` How do I convert it to a tupple so that it …