Skip to content

Commit 7d64858

Browse files
committed
projects
1 parent 49bc00a commit 7d64858

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"python.pythonPath": "C:\\Users\\kmhmu\\anaconda3\\envs\\practice\\python.exe",
3+
"python.testing.promptToConfigure": false,
4+
"python.testing.pytestEnabled": false,
5+
"python.testing.unittestEnabled": false,
6+
"python.testing.nosetestsEnabled": false
7+
}

bmi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# BMI calculator
2+
3+
# Taking user input for height
4+
height = input("Enter you height in m: ")
5+
weight = input("Enter your wight in kg: ")
6+
7+
# converting strings to number
8+
9+
weight_as_int = int(weight)
10+
height_as_float = float(height)
11+
12+
# calculate the bmi value
13+
bmi = weight_as_int / (height_as_float ** 2)
14+
15+
# print(int(bmi))
16+
print(f"Your BMI Value is: {int(bmi)}")

hello.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
motorcycle = []
2+
motorcycle.insert(0,"honda")
3+
print(motorcycle)

life_in_weeks.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Your life in weeks
2+
# A program that tells us how many days, weeks, months we have left if we live until 90 days
3+
4+
# takeing user input
5+
age = input("What is your current age?")
6+
7+
# convert input string to int value
8+
age_in_int = int(age)
9+
10+

tipcal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)