Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def BMI():
- print "Put in your Weight and Height"
- print "Weight:"
- weight = float(raw_input())
- print "Height:"
- height = float(raw_input())
- bmi = weight / height**2
- print bmi
- if bmi < 18.5:
- print "underweight"
- elif 18.5 < bmi < 24.9:
- print "Normal weight"
- elif 25.0 < bmi < 29.9:
- print "Overweight"
- elif bmi > 30.0:
- print "obese"
- while True:
- BMI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement