daily pastebin goal
45%
SHARE
TWEET

Untitled

gdoria21 Mar 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3. def BMI():
  4.     print "Put in your Weight and Height"
  5.     print "Weight:"
  6.     weight = float(raw_input())
  7.     print "Height:"
  8.     height = float(raw_input())
  9.     bmi = weight / height**2
  10.     print bmi
  11.     if bmi < 18.5:
  12.         print "underweight"
  13.     elif 18.5 < bmi < 24.9:
  14.         print "Normal weight"
  15.     elif 25.0 < bmi < 29.9:
  16.         print "Overweight"
  17.     elif bmi > 30.0:
  18.         print "obese"
  19.  
  20. while True:
  21.     BMI()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top