#homework1(BMI) ```python #輸入資訊 weight=int(input("體重(kg):")) #體重 height=int(input("身高(cm):")) #身高(cm) height=height/100 #身高公分轉公尺 BMI=round(weight/(height**2),2) print(BMI) #設體重=70kg 身高=170cm weight=int(70) #體重 height=int(170) #身高(cm) height=height/100 #身高公分轉公尺 BMI=round(weight/(height**2),2) print(BMI)