From 8f0e828b2f9702970483ecbf000ffb531601c027 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 29 Mar 2026 19:41:19 +0330 Subject: [PATCH] Update numpy array examples in Day 24 - Statistics by correcting the initialization of a three-dimensional array and adding a two-dimensional array example to enhance clarity in the 30 Days of Python challenge. --- Persain/24_statistics.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Persain/24_statistics.md b/Persain/24_statistics.md index 99856bc..a1fdd0e 100644 --- a/Persain/24_statistics.md +++ b/Persain/24_statistics.md @@ -172,12 +172,14 @@ print('numpy_array_from_tuple: ', numpy_array_from_tuple) # numpy_array_from_tup nums = np.array() print(nums) print('shape of nums: ', nums.shape) + numpy_two_dimensional_list = np.array([[0,1,2],[3,4,5],[6,7,8]]) print(numpy_two_dimensional_list) print('shape of numpy_two_dimensional_list: ', numpy_two_dimensional_list.shape) - three_by_four_array = np.array([, - , - ]) + three_by_four_array = np.array([[0, 1, 2, 3], + [4,5,6,7], + [8,9,10,11]]) print(three_by_four_array.shape) + print('shape of three_by_four_array: ', three_by_four_array.shape) ``` ```sh