Python test 2

From Oscar Mendez, 1 Month ago, written in Python, viewed 54 times.
URL http://codebin.org/view/5ff9981e Embed
Download Paste or View Raw
  1. name = "Oscar"
  2. height_in = 72
  3. weight_lbs = 60
  4.  
  5. bmi = weight_lbs / (height_in ** 2) * 703
  6. print ("bmi: " + str(bmi))
  7.  
  8. if bmi < 25:
  9.     print(str(name) + " is not overwieght")
  10. elif bmi > 18:
  11.     print(str(name) + " is underweight")
  12. else:
  13.     print(str(name) + " is overwight")
  14.  

Reply to "Python test 2"

Here you can reply to the paste above