Using list comprehension:
>>> lst = [['a','b','c'], [1,2,3], ['x','y','z']]
>>> lst2 = [item[0] for item in lst]
>>> lst2
['a', 1, 'x']
Related Contents:
- List of lists changes reflected across sublists unexpectedly
- Flatten an irregular list of lists
- Python append() vs. + operator on lists, why do these give different results?
- Function changes list values and not variable values in Python [duplicate]
- Generating sublists using multiplication ( * ) unexpected behavior [duplicate]
- Flatten an irregular (arbitrarily nested) list of lists
- Print list of lists in separate lines
- How to convert nested list of lists into a list of tuples in python 3.3?
- Find starting and ending indices of sublist in list
- How to make a flat list out of a list of lists?
- Getting a map() to return a list in Python 3.x
- Why does this iterative list-growing code give IndexError: list assignment index out of range?
- Find intersection of two nested lists?
- How is Python’s List Implemented?
- python list by value not by reference [duplicate]
- Getting the index of the returned max or min item using max()/min() on a list
- Transpose a matrix in Python [duplicate]
- How to split a list based on a condition?
- Python list problem [duplicate]
- Create a list with initial capacity in Python
- python; modifying list inside a function
- Getting only element from a single-element list in Python?
- In Python, how do I index a list with another list?
- Search in lists of lists by given index
- python filter list of dictionaries based on key value
- How do I remove the first item from a list?
- Removing elements from a list containing specific characters [duplicate]
- Flattening a list recursively [duplicate]
- Joining pairs of elements of a list [duplicate]
- Unsupported operand type(s) for +: ‘int’ and ‘str’ [duplicate]
- Memory errors and list limits?
- How to find most common elements of a list? [duplicate]
- How do I reverse a list or loop over it backwards?
- List sorting with multiple attributes and mixed order
- How to access List elements
- Finding a substring within a list in Python [duplicate]
- Head and tail in one line
- Convert string to list. Python [string.split() acting weird]
- Why does reversing a list using slice notation with 0 as “stop” not return the entire list?
- Combining two lists and removing duplicates, without removing duplicates in original list
- How to apply __str__ function when printing a list of objects in Python [duplicate]
- How to apply a function to each sublist of a list in python?
- How to delete an item in a list if it exists?
- list.extend and list comprehension [duplicate]
- Merging/adding lists in Python
- count occurrence of a list in a list of lists
- In what case would I use a tuple as a dictionary key? [closed]
- python’s sum() and non-integer values
- Difference between consecutive elements in list [duplicate]
- Find a value in a list [duplicate]