Using list comprehension:
>>> lst = [['a','b','c'], [1,2,3], ['x','y','z']]
>>> lst2 = [item[0] for item in lst]
>>> lst2
['a', 1, 'x']
More Related Contents:
- List of lists changes reflected across sublists unexpectedly
- Python append() vs. + operator on lists, why do these give different results?
- Flatten an irregular list of lists
- Function changes list values and not variable values in Python [duplicate]
- Generating sublists using multiplication ( * ) unexpected behavior [duplicate]
- Print list of lists in separate lines
- How to convert nested list of lists into a list of tuples in python 3.3?
- Flatten an irregular (arbitrarily nested) list of lists
- Find starting and ending indices of sublist in list
- How to create a number of empty nested lists in python [duplicate]
- How to extract all values from a dictionary in Python?
- python list by value not by reference [duplicate]
- Why does this code for initializing a list of lists apparently link the lists together? [duplicate]
- Access multiple elements of list knowing their index
- Appending the same string to a list of strings in Python
- Removing item from list causes the list to become NoneType
- How to unzip a list of tuples into individual lists? [duplicate]
- Getting only element from a single-element list in Python?
- Writing a list to a file with Python, with newlines
- How can I convert each item in the list to string, for the purpose of joining them? [duplicate]
- How can I initialize a dictionary of distinct empty lists in Python?
- How to read an array of integers from single line of input in python3
- Replace special characters in a string in Python
- List with duplicated values and suffix
- How to group elements in python by n elements [duplicate]
- Unexpected IndexError while removing list items [duplicate]
- How do I reverse a list or loop over it backwards?
- How can I extract the folder path from file path in Python?
- Why does creating a list from a list make it larger?
- Python Accessing Values in A List of Dictionaries