>>>lst=["Monday","Tuesday","Wednesday","Thursday","Friday"]
>>>lst[4][2]
s=[1,8,12,6,9,4]
a=s[0]
b=s[1]
c=s[5]
sum=a+b+c
print(sum)
i=0
sum=0
while i<10:
If:
sum+=i
print("sum=",sum)
n=int(input("参加运动会项目名次(1~5):"))
# 计算并输出得分
print("得分为10分")
elif mc==2:
print("得分为8分")
elif mc==3:
print("得分为6分")
elif mc==4:
print("得分为4分")
elif mc==5:
print("得分为2分")
print("输入的名次不在1~5范围")
# 方法二
f=[10,8,6,4,2]
if n>=1 n<=5:
print("项目得分为:",cj,"分")
else: