From 6441b2b1749b68e6659e3bdac52e396804f878be Mon Sep 17 00:00:00 2001 From: khari thomas Date: Fri, 28 Mar 2025 16:35:10 -0500 Subject: [PATCH] fix python matrix transpose logic --- apps/website/contents/algorithms/matrix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/contents/algorithms/matrix.md b/apps/website/contents/algorithms/matrix.md index 321464e332..685d643f53 100644 --- a/apps/website/contents/algorithms/matrix.md +++ b/apps/website/contents/algorithms/matrix.md @@ -59,7 +59,7 @@ Many grid-based games can be modeled as a matrix, such as Tic-Tac-Toe, Sudoku, C Transposing a matrix in Python is simply: ```py -transposed_matrix = zip(*matrix) +transposed_matrix = list(zip(*matrix)) ``` ## Essential questions