from collections import namedtuple
STUDENT = namedtuple("Student", ["name", "subject", "score"])
stu1 = STUDENT("David", "English", "91")
stu2 = STUDENT("Green", "Math", "95")
print("stu1: " + str(stu1))
print("stu1.name: " + str(stu1.name))
print("stu1.subject: " + str(stu1.subject))
print("stu1.score: " + str(stu1.score))
name1, subject1, score1 = stu1
score1 = float(score1)
score2 = float(stu2.score)
average_score = (score1+score2)/2
print("average_score: " + str(average_score))
stu1: Student(name='David', subject='English', score='91')
stu1.name: David
stu1.subject: English
stu1.score: 91
average_score: 93.0