Donggyu1998

Untitled

Jul 18th, 2021
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. def main():
  2.     score = int(input(" 점수를 입력해주세요.:"))
  3.  
  4.     if score >= 90:
  5.         grade = "A"
  6.     elif score >= 80:
  7.         grade = "B"
  8.     elif score >= 70:
  9.         grade = "C"
  10.     elif score >= 60:
  11.         grade = "D"
  12.     else:
  13.         grade = "F"
  14.    
  15.     print("당신의 성적은: "+grade + " 입니다.")
  16.  
  17. if __name__ == '__main__':
  18.     main()
Add Comment
Please, Sign In to add comment