from student import Student from fag import Fag def testStudent(): student = Student("Maja") print(student.hentStudentNavn()) in1000 = Fag("IN1000") in1020 = Fag("IN1020") student.leggTilFag(in1000) print(student.hentAntallFag()) student.leggTilFag(in1020) print(student.hentAntallFag()) student.skrivUtFagPaaStudent() def testFag(): in1000 = Fag("IN1000") maja = Student("Maja") kai = Student("Kai") sofus = Student("Sofus") print(in1000.hentFagNavn()) in1000.leggTilStudent(maja) print(in1000.hentAntallStudenter()) in1000.leggTilStudent(kai) print(in1000.hentAntallStudenter()) in1000.leggTilStudent(sofus) in1000.skrivStudenterVedFag() def hovedprogram(): testStudent() testFag() hovedprogram()