you need to call the functions so they execute and return a result. Currently your only passing a reference to the function not actually executing it. As a side note, your function for average seems to be off, your sum adds 3 values but your average divides by 4.....
class Student:
def __init__(self, name, korean, math, english): #constructor
self.name = name
self.korean = korean
self.math = math
self.english = english
def get_sum(self): #method
return self.korean + self.math + self.english
def get_avg(self): #method
#return self.get_sum / 4
return self.get_sum() / 4
def to_str(self): #method
#return "{}{}{}".format(self.name, self.get_sum, self.get_avg)
return "{}{}{}".format(self.name, self.get_sum(), self.get_avg())
students = [
Student("a",55,55,55),
Student("b",54,54,54),
Student("c",53,53,53),
Student("c",52,52,52)
]
print("name", "sum", "avg", sep = "")
for student in students:
print(student.to_str())
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…