I have list of tuples in the following format, I need to convert them into following format, I have tried the following code but still producing the same result. Answer You could do it with a list comprehension: Output:
I have list of tuples in the following format, I need to convert them into following format, I have tried the following code but still producing the same result. Answer You could do it with a list comprehension: Output: