fork download
  1. # your code goes here
  2. height=1.75
  3. weight=75
  4. username='小明'
  5. bmi=weight/height**2
  6. print(f'{username}您好,您的体质指数为{round(bmi,1)}')
  7.  
Success #stdin #stdout 0.07s 14124KB
stdin
Standard input is empty
stdout
小明您好,您的体质指数为24.5