Python Exercise: Unzip a list of tuples into individual lists
Python tuple: Exercise-17 with Solution
Write a Python program to unzip a list of tuples into individual lists.
#create a tuple l = [(1,2), (3,4), (8,9)] printlist((zip(*l)))
[(1, 3, 8), (2, 4, 9)]
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework