I have list a with below elements :
[[('433318', 0.7064461851335214), ('433363', 0.6709502341952089)],
[('433395', 0.6988424611161282), ('433400', 0.6794787567547861)],
[('433395', 0.6871546406771576), ('433363', 0.653218445986381)]]
Now I wanted retrieve the elements into a new list b which will have
['433318','433363','433395','433400','433395','433363']
a[0][0][0] gives ‘433318’
a[0][1][0] gives ‘433363’
But I am looking for a generic way (may be in a loop which iterates through the entire list) and gives me the desired result ?