import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))
More Related Contents:
- How to know if an object has an attribute in Python
- Overriding special methods on an instance
- How to call a Python function from Node.js
- What is the purpose of class methods?
- Open web in new tab Selenium + Python
- Start a Function at Given Time
- How can I add a background thread to flask?
- “sys.getsizeof(int)” returns an unreasonably large value?
- Process list on Linux via Python
- How to find a particular JSON value by key?
- What’s the difference between __builtin__ and __builtins__?
- Keras Sequential model input layer
- How to set the default color cycle for all subplots with matplotlib?
- How can I get href links from HTML using Python?
- How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python
- Why does indexing numpy arrays with brackets and commas differ in behavior?
- Rotating a two-dimensional array in Python
- How to frame two for loops in list comprehension python
- How to draw a line with matplotlib?
- How do I pass options to the Selenium Chrome driver using Python?
- Display image stored as binary blob in template
- Nohup is not writing log to output file
- How to plot line (polygonal chain) with numpy/scipy/matplotlib with minimal smoothing
- Why is the cmp parameter removed from sort/sorted in Python3.0?
- When to use Shell=True for Python subprocess module [duplicate]
- Pygame make sprite walk in given rotation
- Execute .exe file embedded in Python script
- Faithfully Preserve Comments in Parsed XML
- Dynamically creating classes – Python
- Python 3 sqlite parameterized SQL-query