use zip if you need both
>>> r=(1,'one'),(2,'two'),(3,'three')
>>> zip(*r)
[(1, 2, 3), ('one', 'two', 'three')]
More Related Contents:
- How can I add tuples in a list? [closed]
- How to sort a list/tuple of lists/tuples by the element at a given index?
- What’s the difference between lists and tuples?
- How to merge lists into a list of tuples?
- Sort a list of tuples by 2nd item (integer value) [duplicate]
- How to extract the n-th elements from a list of tuples
- Are tuples more efficient than lists in Python?
- a mutable type inside an immutable container
- How to unzip a list of tuples into individual lists? [duplicate]
- Append to a list defined in a tuple – is it a bug? [duplicate]
- Subtracting 2 lists in Python
- List of tuples to dictionary [duplicate]
- Explicitly select items from a list or tuple
- What is the inverse function of zip in python? [duplicate]
- How to find the maximum value in a list of tuples? [duplicate]
- Converting a list of tuples into a dict
- How to compare a list of lists/sets in python?
- Find an element in a list of tuples
- Why is tuple faster than list in Python?
- How to convert list of tuples to multiple lists?
- How to convert nested list of lists into a list of tuples in python 3.3?
- What’s the difference between lists enclosed by square brackets and parentheses in Python?
- List of Tuples to DataFrame Conversion [duplicate]
- How to flatten a tuple in python
- How does str.startswith really work?
- Concatenate elements of a tuple in a list in python [duplicate]
- If in Python I put a list inside a tuple, can I safely change the contents of that list? [duplicate]
- Filter a list of tuples based on condition
- How can I convert this string to list of lists? [duplicate]
- Converting string to tuple without splitting characters