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 do I merge multiple lists into one list? [duplicate]
- How to zip two lists of lists
- What does += mean in this context?
- What does “list comprehension” and similar mean? How does it work and how can I use it?
- Element-wise addition of 2 lists?
- Iterate over all pairs of consecutive items in a list [duplicate]
- How Big can a Python List Get?
- Sum a list of numbers in Python
- List comprehension vs generator expression’s weird timeit results?
- Nested List and count()
- Modify a list while iterating
- How do I create a list with numbers between two values?
- How do I loop through a list by twos? [duplicate]
- List assignment with [:]
- Why is tuple faster than list in Python?
- How to make a set of lists
- Identify if list has consecutive elements that are equal
- django – convert a list back to a queryset [duplicate]
- Convert list of strings to dictionary
- Most efficient way for a lookup/search in a huge list (python)
- Sort list of strings by a part of the string
- Why does df.apply(tuple) work but not df.apply(list)?
- Creating a dictionary with list of lists in Python
- Merging two tables with millions of rows in Python
- How do I send list of dictionary as Body parameter together with Files in FastAPI?
- deque.popleft() and list.pop(0). Is there performance difference?