create uebung folder

This commit is contained in:
2022-01-11 15:56:57 +01:00
parent ae75553228
commit 31fa051e88
2 changed files with 7 additions and 2 deletions

12
uebung/bmi.py Normal file
View File

@@ -0,0 +1,12 @@
# Calculate your Body-Mass-Index with Python
print("BMI - Calculator!")
weight_str = input("Please insert your weight (in kg): ")
height_str = input("Please insert your bodys height(in m): ")
weight = float(weight_str.replace(",", "."))
height = float(height_str.replace(",", "."))
bmi = weight / height ** 2
print("Your BMI is: " + str(round(bmi, 1)))