백준

[백준] 9498번 : 시험성적 (Python) - 단계별로 풀어보기

by 윤 2023. 3. 22. 02:07
728x90

Python3 코드

score = int(input())

if score >= 90 :    #파이썬은 if문 괄호 안씀
    print('A')
elif score >= 80 :
    print('B')
elif score >= 70 :
    print('C')
elif score >= 60 :
    print('D')
else:
    print('F')