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 cc242e9 commit d3feb73Copy full SHA for d3feb73
bmr.py
@@ -1,9 +1,14 @@
1
# Basal Metabolic Rate Calculator
2
3
-weight = int(input("Enter your weight in KG: \n"))
4
-height = int(input("Enter your height in cm: \n"))
5
-age = int(input("Enter your age in years: \n"))
6
-isMale = str(input("Are you male? (y/n)"))
+
+def takeInputs():
+ weight = int(input("Enter your weight in KG: \n"))
7
+ height = int(input("Enter your height in cm: \n"))
8
+ age = int(input("Enter your age in years: \n"))
9
+ isMale = str(input("Are you male? (y/n)"))
10
11
+takeInputs()
12
13
if isMale == "y":
14
isMale = True
functions.py
@@ -0,0 +1,8 @@
+def add():
+ return 2 + 3
+def multiply():
+ return 2 * 3
+def cube():
+ return 2 ** 3
0 commit comments