- name=input("請輸入姓名:")
- score=int(int("請輸入成績:"))
- if score==100:
- print(f"{name} 你是天才!IQ180")
- elif score>=90 and score<=99:
- print(f"{name} 你是甲等")
- elif score>=80 and score<=89:
- print(f"{name} 你是乙等")
- elif score>=70 and score<=79:
- print(f"{name} 你是丙等")
- elif score>=60 and score<=69:
- print(f"{name} 你是丁等")
- elif score>=0 and score<=59:
- print(f"{name}!你不及格!滾!")
- else:
- print(f"{name}!你的成績輸入錯誤")
複製代碼 |