started main and fixed issue #7

This commit is contained in:
2019-07-31 16:38:47 +02:00
parent 55a1e7c9b9
commit 44a5fbc4b7
3 changed files with 21 additions and 3 deletions
+7
View File
@@ -26,3 +26,10 @@ class Grade:
self.grade = grade
self.name = name
self.date = date
def get_subject(liste, name):
for subject in liste:
if subject.name == name:
return subject
return None