Discuss / Python / 作业

作业

Topic source

-- coding: utf-8 --

height = 1.75 weight = 80.5 bmi = weight/(height*height) if bmi<18.5: print('light') elif bmi<25: print('normal') elif bmi<32: print('obese') else: print('severely obese')


  • 1

Reply