Reply To: Nested list comprehension examples

Python Land Forums The Python Tutorial Nested list comprehension examples Reply To: Nested list comprehension examples

#1670
Erik van Baaren
Keymaster

Thank you for letting me know.

There were two errors in the examples. First of all, the result of the first example should be assigned to a variable m. That variable is used in the next two examples.

Second: there were too many block quotes in the first ‘flatten’ example. I fixed both errors, so please try again!