LISTA=[["001", "TOM", "13800000001", "AAAA"],["002", "Jerry", "13800000002", "BBBB"]]
name=[]
for ID,NAME,HSNUMBER,ADDRESS in LISTA:
name.append(NAME)
>>> name
['TOM', 'Jerry']
I feel it is not a simple way to get all the NAME in LISTA,how to revise it ?
I think this is very simple way.
UPDATE
what is the meaning of
*here?In general
is equivalent to
So here
is equivalent to