学生成绩评价程序实现对输入学生成绩进行评价的功能。评价标准是90分以上为“优秀”,80-90间为“良好”,60-80分为“及格”,60分下为“不及格”。
x=0
for i in range(6):
for j in range(7):
x=x+1
print (x)
>>> test=list (range(1,5))
>>> test
#请写出结果
height=input('你的身高是多少米:')
height=float(height)
weight =input('你的体重是多少KG:')
weight =float(weight)
BMI=weight/(height*height)
if BMI>=24.9:
print('肥胖')
① BMI<24.9 ② BMI>=18.5:
print('正常')
else:
print('偏瘦')
print(2*4)
a=2
b=3 b=4
print(a+b)
a=4
b=6
avg=(a+b)/3
print(avg)
for i in range(2,5):
print(i)