返回列表 發帖
本帖最後由 陳星翰 於 2020-7-28 11:44 編輯
  1. score=float(input(("please enter your score: ")))
  2. if (score>=90 and score<=100):
  3.     print("Good job, u pass")
  4. elif (score>=80 and score<90):
  5.         print("you passed with nice")
  6. elif (score>=70 and score<80):
  7.         print("you kinda dumb, but still a pass")
  8. elif (score>=60 and score<70):
  9.         print("you passed, but this is a bad score")
  10. elif (score>=0 and score<60):
  11.         print("only raymond gets this score, get out")
  12. else :
  13.     print("you dumb? this aint no score")
複製代碼

TOP

返回列表