返回列表 發帖
  1. score=float(input("Please Enter Your Score: "))
  2. if(score>100 or score<0):
  3.     print("Invalid Entry! Please Try Again!")
  4. elif(score<=100 and score>96):
  5.     print("A+! Well Done!")
  6. elif(score<=96 and score>=93):
  7.     print("A.. You could do better next time!")
  8. elif(score<=93 and score>=90):
  9.     print("You have an A-.You are no longer a qualified Asian!")
  10. elif(score<90 and score>86):
  11.     print("B+")
  12. elif(score<=86 and score>82):
  13.     print("B")
  14. elif(score<=82 and score>=80):
  15.     print("B-")
  16. elif(score<80 and score>=77):
  17.     print("C+! How dare you? This Score should not have existed in my class!")
  18. elif(score<77 and score>=73):
  19.     print("C! Did you even try?")
  20. elif(score<73 and score>=70):
  21.     print("C-")
  22. elif(score<70 and score>=67):  
  23.     print("D+! You are such a faliure!")
  24. elif(score<67 and score>=63):
  25.     print("D")
  26. elif(score<63 and score>=60):
  27.     print("D-...I have no hope in you! You are not going to be successful in the future! You can't even read!")
  28. else:
  29.     print("F!!!Get Out of my Room NOW! Get OUT! You Idiot!")
複製代碼
._.

TOP

返回列表