중간고사, 기말고사 점수 두 개를 입력받기
input1 = int(input())
input2 = int(input())
score = (input1 + input2)/2
if input1 ==0 or input2 == 0:
print("F")
elif score >= 80:
print("A+")
elif score >= 60:
print("A0")
elif score >= 40:
print("B+")
else:
print("B0")
'HappyCoding > happy python' 카테고리의 다른 글
Flask, 마이크로 웹 프레임워크 (0) | 2021.11.11 |
---|---|
파이썬 네이밍 컨벤션 (0) | 2021.08.19 |
python 알파벳 대문자가 포함되어 있는지 확인하는 로직 (0) | 2021.06.16 |
Python Exercise: Calculate the sum and average of n integer numbers / 사용자의 입력을 받아 평균(average) 구하기 (0) | 2021.06.13 |
도레미 파이썬. (0) | 2021.05.11 |