Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9b2df41

Browse files
Update 4_NumPy_3_Baseball player's BMI.py
1 parent 365887a commit 9b2df41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎4_NumPy_3_Baseball player's BMI.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import numpy as np
55

66
# Create array from height with correct units: np_height_m
7-
np_height_m = np.array(height) * 0.0254
7+
np_height_m = np.array(height_in) * 0.0254
88

99
# Create array from weight with correct units: np_weight_kg
10-
np_weight_kg=np.array(weight)*0.453592
10+
np_weight_kg=np.array(weight_lb)*0.453592
1111

1212
# Calculate the BMI: bmi
1313
bmi=np_weight_kg/(np_height_m **2)
1414

1515
# Print out bmi
16-
print(bmi)
16+
print(bmi)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /