Advertisement
Talithacelin

Input Score

Aug 21st, 2022 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. #INPUTSCORE
  2. #2nd endofjuly
  3. print("INPUT UR SCORE HERE")
  4. while True : #loop
  5.     score=input ('Enter your score = ')
  6.     sc = int(score)
  7.  
  8.     if sc > 100 :
  9.         print('Error. Not a valid score..')
  10.    
  11.     elif int(sc==100):
  12.         print('Score Received. Excellent! You got an A+!')
  13.     elif int(sc>=90 and sc<100):
  14.         print('Score Received. Well Done! You got an A!')
  15.     elif int(sc>=80 and sc<90):
  16.         print('Score Received. Good Job! You got a B !')
  17.     elif int(sc>=70 and sc<80):
  18.         print('Score Received. Dont give up! You got a C!')
  19.     elif int(sc>=50 and sc<70):
  20.         print('Score Received. You can do better! You got a D!')
  21.     elif int(sc>=10 and sc<50):
  22.         print('Score Received. Sorry better luck next time..You got an E!')
  23.     elif int(sc>=0 and sc<10):
  24.         print('Score Received. UNBELIVABLE..A F FOR U')
  25.  
  26. #Talice ~
  27.        
  28.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement