Say I have a list of lists for example:
list0 = [[a, .5, .3], [b, .3, .8], [c, .7, 1.3], [d, 1.03, .2]]
I want to call the second element of each sublist for output to a list I assumed this would work.
input: print(list0[:][1])
output: [b, .3, .8]
but I was hoping to get this instead: (.5, .3, .7, 1.03)
Is there a possible way to call all sublists and access their elements without looping through whole list to create a new one? Can you compare times and describe why we can't call all or a range of sublists to get an element from each without looping through twice, once to get sublists and once to access each of them?