Merge pull request #304 from janekpaw321/master

Minor typo fixes + made the numpy example more clear
This commit is contained in:
Asabeneh 2026-01-15 09:39:59 +02:00 committed by GitHub
commit c099d4da3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,12 +172,15 @@ The shape method provide the shape of the array as a tuple. The first is the row
nums = np.array([1, 2, 3, 4, 5])
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([[0, 1, 2, 3],
[4,5,6,7],
[8,9,10, 11]])
print(three_by_four_array.shape)
[8,9,10,11]]
print(three_by_four_array)
print('shape of three_by_four_array: ', three_by_four_array.shape)
```
```sh