W=float( input(输入体重(kg):")
h= float( input("输入身高(m):"))
bmi=w/(h*h) #BMI=体重(kg)/身高的平方(m)
if bmi<18.5:
print("偏瘦")
elif 18.5<=bmi<24:
print("正常")
else:
print("偏胖")
①编译程序②连接计算机③编写程序④安装驱动⑤上传程序⑥测试程序
s="Happy National Day!"
m=
if m=="Happy":
print("Happy to you!")
elif m=="National":
print("Best Wishes to you!")
else:
print("It's a fine Day!")
number= 99
number_ guess= int (input ("你猜测的数字是: "))
if number =number_ guess:
print ("你猜对了")
① number > number_ guess:
print ("你猜的数字小了")
print ("你猜的数字大了")
请选择适当的代码填入程序①处。( )
请将下列程序补充完整。
tc=1020
c=0
while :
tc=tc-(tc/2+2)
print(c)
list=['a','b','c','d','e','f','g']
list1=[]
list2=[]
for i in range(7):
if i%2==0:
list1.append(list[i])
list2.append(list[i])
print(list1)
for num in range(2,10):
if num % 2==0 :
continue
print(num,end=”、”)
import math
total=float (input("请输入金额:"))
if total<=500:
total*=0.9
elif total<=1500:
total*=0.85
else
total*=0.75
print(math.f1oor(total))
运行程序,输入"1024"后回车,程序的输出结果是。