Commit ba9063fd by BellCodeEditor

save project

parent c4e697d8
Showing with 22 additions and 9 deletions
list=[90,98,89,77]
def jisuan(a):
he=0
for i in a:
he=he+i
return he
b=jisuan(list)
print(b)
\ No newline at end of file
fen=[92,98,95,99,93,100]
a=0
for i in range(6):
if fen [i]<fen[a]:
a=i
a1=str(fen[a])
print("去掉一个最低分:"+a1)
b=0
for i in range(6):
if fen [i]>fen[b]:
b=i
b1=str(fen[b])
print("去掉一个最高分:"+b1)
c=fen[a]
d=fen[b]
fen.remove(c)
fen.remove(d)
e=0
for i in range(4):
e=e+fen[i]
print(e)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment