Skip to content

Commit

Permalink
ch4 typos in code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
richierocks committed Jan 8, 2019
1 parent 9178c91 commit 1bca826
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chapter4.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ import numpy as np
# Import numpy
import numpy as np
# Create a numpy array from height: np_height_in
# Create a numpy array from height_in: np_height_in
# Print out np_height
# Print out np_height_in
# Convert np_height to m: np_height_m
# Convert np_height_in to m: np_height_m
# Print np_height_m
Expand All @@ -167,7 +167,7 @@ np_height_in = np.array(height_in)
# Print out np_height_in
print(np_height_in)
# Convert np_height to m: np_height_m
# Convert np_height_in to m: np_height_m
np_height_m = np_height_in * 0.0254
# Print np_height_m
Expand Down Expand Up @@ -518,7 +518,7 @@ np_height_in = np.array(height_in)
# Print out the weight at index 50
# Print out sub-array of np_height: index 100 up to and including index 110
# Print out sub-array of np_height_in: index 100 up to and including index 110
```

Expand All @@ -536,7 +536,7 @@ np_height_in = np.array(height_in)
# Print out the weight at index 50
print(np_weight_lb[50])
# Print out sub-array of np_height: index 100 up to and including index 110
# Print out sub-array of np_height_in: index 100 up to and including index 110
print(np_height_in[100:111])
```

Expand Down

0 comments on commit 1bca826

Please sign in to comment.