Problem: I wonder if there is a shortcut to create a simple list from a list of lists in Python. I can do it in a loop for, but maybe there is some cool one-liner? I tried this with reduce(), but I am getting the error. <Strong> Code l = [[1, 2, 3], [4, ... last): File "<stdin>", line 1, in <module> File "<stdin>", line 1, in <lambda> AttributeError: 'NoneType' object has no attribute 'extend'
asked
Dec 23, 2020
sasha
8.4k points