Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
otahina committed Jul 17, 2023
1 parent 0cb7942 commit 1c3457e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions projects/BMI WebApp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@
from pywebio.output import *


class calculation:
def BMIcalculator(Height, Mass):
for t1, t2 in [
(16, "severely underweight"),
(18.5, "underweight"),
(25, "normal"),
(30, "overweight"),
(35, "moderately obese"),
(float("inf"), "severely obese"),
]:
if BMI <= t1:
put_text("Your BMI is", BMI, "and the person is :", t2)
break


class calculation:
def BMIcalculator(self, Height, Mass):
BMI = (Mass) / (Height * Height)
Expand Down

0 comments on commit 1c3457e

Please sign in to comment.