s = 0
for i in range(1,11):
t = 2 * i - 1
s = s + t
print (s)
執(zhí)行后,屏幕將輸出( )
if k<=10 and k >0:
if k >5:
if k>8:
x=0
else:
x=1
else:
if k>2:
x=3
else:
x=4
其中k取哪組值時,x=3。( )
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)
print(list1)
x=int(input("請輸入一個正整數(shù):"))
if x%2==0:
print(x,"是偶數(shù).")
else:
print(x,"是奇數(shù).")