Discuss / Python / 交作业

交作业

Topic source

h=float(input('type height(m) here:')) w=float(input('tpye weight(kg) here:')) b=w/h/h

if b<18.5: print('light') elif b<=25: print('normal') elif b<=28: print('heavy') elif b<=32: print('fat') else: print('very fat')


  • 1

Reply