1 parent 765ad72 commit 4afc362Copy full SHA for 4afc362
1 file changed
src/transpose.py
@@ -1,3 +1,6 @@
1
+from collections.abc import Iterable
2
+
3
4
def transpose(lst):
5
if len(lst) > 0 and isinstance(lst[0], Iterable) is False:
6
return lst
@@ -8,4 +11,4 @@ def transpose(lst):
8
11
# print(r)
9
12
10
13
r = transpose([[1, 2, 3], [4, 5, 6]])
-print(r)
14
+print(r)
0 commit comments