백준풀이(Python)

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

육지핑핑이 2023. 3. 23. 00:53

Python3코드

score = int(input())

if score >= 90 :
    print('A')
elif score >= 80 :
    print('B')
elif score >= 70 :
    print('C')
elif score >= 60 :
    print('D')
else:
    print('F')