import itertools
ab = itertools.chain(['it'], ['was'], ['annoying'])
list(ab)
Just another method….
More Related Contents:
- How to merge lists into a list of tuples?
- Merge lists that share common elements
- merging Python dictionaries
- Merging dictionary value lists in python
- How to merge multiple lists into one list in python? [duplicate]
- How to zip two lists of lists
- Find intersection of two nested lists?
- Why does foo.append(bar) affect all elements in a list of lists?
- How to get the nth element of a python list or a default if not available
- List of dicts to/from dict of lists
- Transpose nested list in python
- Combine lists with common elements
- How do I split a string into a list?
- Explicitly select items from a list or tuple
- How do I prepend to a short python list?
- Python: why does my list change when I’m not actually changing it?
- “unstack” a pandas column containing lists into multiple rows [duplicate]
- Break string into list of characters in Python [duplicate]
- How to make a custom object iterable?
- Getting a default value on index out of range in Python [duplicate]
- How to create a list of objects?
- List of Tuples to DataFrame Conversion [duplicate]
- Remove dictionary from list
- Determine if 2 lists have the same elements, regardless of order? [duplicate]
- How do I return dictionary keys as a list in Python?
- Why can’t I use a list as a dict key in python? Exactly what can and cannot be used, and why?
- Is there a way to circumvent Python list.append() becoming progressively slower in a loop as the list grows?
- Check if all values in list are greater than a certain number
- Merging two tables with millions of rows in Python
- deque.popleft() and list.pop(0). Is there performance difference?