Discuss / Python / 比较简短的

比较简短的

Topic source

江思年

#1 Created at ... [Delete] [Delete and Lock User]

h=input('height:') w=input('weight:') height=float(h) weight=float(w) bmi=float(w)/float(h)/float(h) if bmi>=32:print('severe obesity') elif bmi>=28:print('obesity') elif bmi>=25:print('overweight') elif bmi>=18.5:print('normal') else:print('thin')


  • 1

Reply