怎麼三題變一題
stu = [91,100,70,85,59,65]
score = []
for i in stu:
if 90<=i<=100:
score.append('S')
elif 80<=i<90:
score.append('A')
elif 70<=i<80:
score.append('B')
elif 60<=i<70:
score.append('C')
else:
score.append('D')
雖然很明顯是作業問答案,
不過至少把先前的問題的最佳解給一下吧