วันจันทร์ที่ 21 กันยายน พ.ศ. 2558

Lab 4x - (Python) Grade

>>> def setup():
  score = 78
  print("Your score was =",score)
  if score<101and score>=80:
    print("A")
  if score<80and score>=70:
    print("B")
  if score<70and score>=60:
    print("C")
  if score<60and score>=50:
    print("D")
  if score<50:
    print("F")

 
>>> setup()
Your score was = 78
B
>>>


ไม่มีความคิดเห็น:

แสดงความคิดเห็น