HW03 判斷敘述式
1.Notebook
2.YU
3.學卡習與測驗
4. # 學生考試成績判斷程式score = int(input("請輸入學生的考試分數 (0-100):"))
if score >= 90:
print("評等:A (表現優異!)")
elif score >= 80:
print("評等:B (表現良好!)")
elif score >= 70:
print("評等:C (表現普通,再接再厲!)")
elif score >= 60:
print("評等:D (剛好及格)")
else: print("評等:F (不及格,需要多加加油喔!)")













留言
張貼留言