I need help decomposing a nested list. For example:
a=[['we','got],['this','in'],['the','bag','man']]
into
b=['we','got','this','in','the','bag','man']
I've tried list comprehensions but continue getting index error when trying to do
x_1=[i[0] for i in a]
x_2=[i[1] for i in a]
It returns error i[1] is out of range for the list.