I'm new to python and in the process of rewriting an old python script and I came across the following line:
some_list = #some list with data
some_variable = [x[0] for x in some_list]
what's x[0]
? I don't see x
declared previously, is it being created on this line?
what would the value or some_variable be? a list?
update
by 'x' i'm referring to x[0]
, not the x in the for loop