x=1
while x>0:
x=x+1
print( x)
s =0
for i in range(1,4):
for j in range(1,6):
s=s+i
print(s)
①语句“c<=n?”共执行了4次 ②循环结束后,变量a的值为3
③循环结束后,变量b的值为5 ④循环结束后,程序输出的值为6
v=float(input("请输入速度(千米/秒):"))
if v>=7.91:
print("飞船成功飞行! ")
else:
print("飞船不能升空! ")
list=['a','b','c','d','e','f','g']
list1=[]
list2=[]
for i in range(7):
if i%2==0:
list1.append(list[i])
else:
list2.append(list[i])
print(list1)