summaryrefslogtreecommitdiff
path: root/accessing_parts_of_arrays/script.rst
diff options
context:
space:
mode:
Diffstat (limited to 'accessing_parts_of_arrays/script.rst')
-rw-r--r--accessing_parts_of_arrays/script.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/accessing_parts_of_arrays/script.rst b/accessing_parts_of_arrays/script.rst
index 48ed2e9..0a9d6ad 100644
--- a/accessing_parts_of_arrays/script.rst
+++ b/accessing_parts_of_arrays/script.rst
@@ -668,13 +668,13 @@ Obtain the elements, ``[[21, 22], [31, 32]]``
3. Given the array,
::
- B = array([[10, 11, 12, 13],
+ C = array([[10, 11, 12, 13],
[20, 21, 22, 23]])
Change the array to
::
- B = array([[10, 11, 10, 11],
+ C = array([[10, 11, 10, 11],
[20, 21, 20, 21]])
.. L58
@@ -699,7 +699,7 @@ And the answers,
3. We can change the elements of array C,by using slicing and striding
::
- B[:2, 2:] = B[:2, :2]
+ C[:2, 2:] = C[:2, :2]
.. L59