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 061bc70 commit 4a878aaCopy full SHA for 4a878aa
bmi.py
@@ -0,0 +1,10 @@
1
+def compute_bmi(x, y):
2
+ return x / (y**2)
3
+
4
5
+x = float(input("Your weight: "))
6
+y = float(input("Your height: "))
7
8
+bmi = compute_bmi(x, y)
9
+bmi_rounded = round(bmi, 3)
10
+print(bmi_rounded)
0 commit comments