[Python] 조건문 연습1
Study Code/[Basic] Python2024. 5. 9. 00:38[Python] 조건문 연습1

국어, 영어, 수학, 과학, 국사 점수를 입력하면 총점을 비롯한 각종 데이터가 출력되는 프로그램     - 과목별 점수를 입력하면 총점, 평균, 편차를 출력         평균은 다음과 같다.         (국어: 85, 영어: 82, 수학: 89, 과학: 75, 국사: 94)     - 각종 편차 데이터는 막대그래프로 시각화  avgKor = 85; avgEng = 82; avgMath = 89; avgSciece = 75; avgHistory = 94sum = avgKor + avgEng + avgMath + avgSciece + avgHistoryavg = sum / 5kor = int(input('국어: '))eng = int(input('영어: '))math = int(input('수학: ')..

728x90
반응형
image