Home
Flutter
Python
Android
ReactNative
C Tutorial
Q & A
Quiz
Forum
Kotlin
Java
Ruby
Source Code
Dart
Widget Catlog
Write For Us
DevOps
Vocabulary
Tutorials
Git
Jobs
XApk
DevOps
Blog
Sitemap
SubScribe
Python program to Unpack Matrix into One Level List
x = [[
1
,
2
,
3
]
,
[
4
,
5
,
6
]
,
[
7
,
8
,
9
]] y = [item
for
row
in
x
for
item
in
row]
print
(y)
Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Run Python Online