From 82831775969fd5737536c348d4016cb9cc41941f Mon Sep 17 00:00:00 2001 From: govindv2 Date: Tue, 30 Oct 2018 14:30:07 +0800 Subject: [PATCH] Add alternative trnaspose program in python --- python/transpose.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 python/transpose.py diff --git a/python/transpose.py b/python/transpose.py new file mode 100644 index 00000000..45a79420 --- /dev/null +++ b/python/transpose.py @@ -0,0 +1,2 @@ +trans_mat = lambda x : zip(*x) +print(trans_mat([[1,2,3],[1,2,3]]))