Skip to content

Commit 6da92a9

Browse files
YouTubeYouTube
authored andcommitted
Source code up to Python for Beginners Part 13
1 parent d3feb73 commit 6da92a9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

bmr.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Basal Metabolic Rate Calculator
22

3-
4-
5-
def takeInputs():
6-
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()
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)"))
127

138
if isMale == "y":
149
isMale = True

0 commit comments

Comments
 (0)