브랜치따서 각자 덧셈, 뺄셈, 곱셈, 나눗셈 함수를 가진 Calculator 클래스를 만들 것
해당 클래스로 주어진 학생 리스트의 학점 평균을 내주는 모듈을 만들기
calculator.py
class Calculator:
@static
def add(self, first, second):
return first+second
calc_modult.py
students = [
("김한성", [{"C강의", "A+"}, {"창의적설계", "F"}, {"네트워크", "D"}]),
("고은진", [{"C강의", "C+"}, {"창의적설계", "A+"}]),
("박시현", [{"C강의", "B+"}, {"창의적설계", "B"}])
]
scores = [
{"A+": "4.5"},
{"A": "4"},
{"B+": "3.5"},
{"B": "3"},
{"C+": "2.5"},
{"C": "2"},
{"D+": "1.5"},
{"D": "1"},
{"F": "0"}
]
lectures = [
{"C강의": "3"},
{"창의적설계": "2"}
]
def showScore(self, students_input, scores_input)
코딩코딩~~~