A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Matrix-transposition/Python/matrix-transposition.py
Normal file
8
Task/Matrix-transposition/Python/matrix-transposition.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
m=((1, 1, 1, 1),
|
||||
(2, 4, 8, 16),
|
||||
(3, 9, 27, 81),
|
||||
(4, 16, 64, 256),
|
||||
(5, 25,125, 625))
|
||||
print(zip(*m))
|
||||
# in Python 3.x, you would do:
|
||||
# print(list(zip(*m)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue