Confusing title, not sure how to formulate myself. Example at the end, probably makes it easier to understand.
So, I have an array A_Main1 where each element is another array, A_Elem0, A_Elem1...A_ElemN
I want to make a new array where each element is the first element of every array A_ElemI in A_Main1
I've seen code of this before but can't remember how it's done. This is what part of my code looks like
latitudeInfo = [latitude1Info[], latitude2Info[]...latitudeNInfo[]]
#latitudeXInfo[0] = the actual latitude, latitudeXInfo[>0] are values in someway
#connected to the latitude. So the 0th element of latitudeXInfo is always the latitude
I want to make a new array of all latitudes in latitudeInfo
possibleLatitudes = []
possibleLatitudes.append(latitudeInfo[i][0] for i in latitudeInfo)
Thinking that possibleLatitudes appends the 0th element of the i:th list in latitudeInfo but this doesn't seem to work.