We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365887a commit ae8c266Copy full SHA for ae8c266
4_NumPy_5_Subsetting NumPy Arrays.py
@@ -4,10 +4,10 @@
4
import numpy as np
5
6
# Store weight and height lists as numpy arrays
7
-np_weight = np.array(weight)
8
-np_height = np.array(height)
+np_weight_lb = np.array(weight_lb)
+np_height_in = np.array(height_in)
9
10
# Print out the weight at index 50
11
-print(np_weight[50])
+print(np_weight_lb[50])
12
# Print out sub-array of np_height: index 100 up to and including index 110
13
-print(np_height[100:111])
+print(np_height_in[100:111])
0 commit comments