Answers for "Flatten List in Python With Itertools"

0

Flatten List in Python With Itertools

import itertools
List = [[1,2],[5,6],[7,9]]
list_using_itertools = list(itertools.chain(*List))
print(list_using_itertools)
Posted by: Guest on April-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language