Skip to content

Commit 4a0da3c

Browse files
committed
added returning value to the function
1 parent fb68c7e commit 4a0da3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix/transpose_of_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""
1919

2020

21-
def transpose(matrix):
21+
def transpose(matrix: list[list[int]]) ->list[list[int]]:
2222
# create a null matrix of same dimension of given matrix
2323
trans = [[0] * len(matrix) for _ in range(len(matrix[0]))]
2424
for i in range(len(matrix)):

0 commit comments

Comments
 (0)