Commit 9c068459 by BellCodeEditor

save project

parent 9496259e
Showing with 88 additions and 1 deletions
i = 2
sum = 0
while i <= 100:
if i % 2 == 0:
sum -= i
else:
sum += i
i += 1
print("sum:",str(sum))
# 期末考试结束了,悟空在教务系统查到了自己的几门必修课分数,他想通过python计算自己的平均分。
# 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。
scores = {'语文':89, '数学':95, '英语':80}
scores = {'语文':8, '数学':9, '英语':8}
def get_average(dict_1):
score1 = 0
......
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