Initial commit
This commit is contained in:
4
python/List/Python program to flatten a shallow list.py
Normal file
4
python/List/Python program to flatten a shallow list.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import itertools
|
||||
original_list = [[2,4,3],[1,5,6], [9], [7,9,0]]
|
||||
new_merged_list = list(itertools.chain(*original_list))
|
||||
print(new_merged_list)
|
||||
Reference in New Issue
Block a user