I am a beginner in python and I have this problem that I am hoping that someone could help me with.
first, I have a list of sublists with varying length
input:
temp_list=[[87.33372], [86.30815, 300.0], [96.31665, 300.0]]
I am trying to create a new list of lists, where the sublist consists of items of the same index from each list sublist, I hope this does not sound too convoluted.
maybe this will make it a bit more clear
desired output:
[[87.33372, 86.30815, 96.31665],[300.0, 300.0]]
I have thought of this formula but I'm not sure on how to implement it
x=0
new_list = [sublist[x][i],sublist[x+1][i]...]