Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 인코딩
- 미래내일일경험
- 웅징싱크빅
- numpy
- 앱개발
- Udemy
- 리액트프로젝트
- 웅징씽크빅
- 유데미
- 선택정렬
- 특성스케일링
- 프로젝트캠프
- Machine learning
- 프론트엔드개발자양성과정
- 데이터불균형
- 버블정렬
- 알고리즘
- 부트캠프
- 스나이퍼팩토리
- 웅진씽크빅
- 인사이드아웃
- react
- 플러터
- 개발자교육과정
- Flutter
- 플러터개발
- 머신러닝
Archives
- Today
- Total
Mango is Mango
[Python] 백준 9498번 : 시험 성적 본문
백준 9498번
python코드
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')
코드 설명
score = int(input()) #int 정수형으로 score를 입력받는다.
if score>= 90:#조건1:90 ~ 100점은 A
print('A')
elif score >=80: #조건2:80 ~ 89점은 B
print('B')
elif score >=70: #조건3:70 ~ 79점은 C
print('C')
elif score >=60: #조건4 : 60 ~ 69점은 D
print('D')
else: # 조건5 : 나머지 점수는 F를 출력
print('F')
'코테준비 > 백준' 카테고리의 다른 글
[Python] 백준 25304번 : 영수증 (0) | 2023.04.11 |
---|---|
[Python] 백준 2739번 : 구구단 (0) | 2023.04.07 |
[Python] 백준 1330번 : 두 수 비교하기 (0) | 2023.04.07 |
Comments