Python不会做 help help

如何加for in range循环语句,使得结果类似于下图↓

img


下面是我写的,看看怎么改
please简单点!太复杂了我看不懂orz

name = input("姓名:")
height , weight = eval ( input ("请输入身高m和体重kg [英文逗号隔开]:"))
bmi = weight / pow(height, 2)
print("姓名:{}, BMI数值为:{:.2f}".format(name,bmi))
a, b = "", ""
if bmi < 18.5:
a, b = "偏瘦", "偏瘦"
elif 18.5 <= bmi < 24:
a, b = "正常", "正常"
elif 24 <= bmi < 25:
a, b = "正常", "偏胖"
elif 25 <= bmi < 28:
a, b = "偏胖", "偏胖"
elif 28 <= bmi < 30:
a, b = "偏胖", "肥胖"
else:
a, b = "肥胖", "肥胖"
print("BMI指标为:国际'{}',国内'{}'".format(a, b))

get = input("请输入姓名、身高m和体重kg [英文逗号隔开]:").replace(' ', '').replace(',', ',').split(',')


for index in range(0, len(get), 3):
    name = str(get[index])
    height, weight = float(get[index+1]), float(get[index+2])
    bmi = weight / pow(height, 2)
    print("姓名:{},身高{:.2f},体重{},\nBMI数值为:{:.2f}".format(name, height, weight, bmi))
    a, b = "", ""
    if bmi < 18.5:
        a, b = "偏瘦", "偏瘦"
    elif 18.5 <= bmi < 24:
        a, b = "正常", "正常"
    elif 24 <= bmi < 25:
        a, b = "正常", "偏胖"
    elif 25 <= bmi < 28:
        a, b = "偏胖", "偏胖"
    elif 28 <= bmi < 30:
        a, b = "偏胖", "肥胖"
    else:
        a, b = "肥胖", "肥胖"
    print("BMI指标为:国际'{}',国内'{}'".format(a, b))