diff --git a/project/app/models.py b/project/app/models.py new file mode 100644 index 0000000..a409203 --- /dev/null +++ b/project/app/models.py @@ -0,0 +1,19 @@ + + +import random + +class Roster: + """Needs a roster, place to load it from, a file locater for the + list, and ability to adjust roster""" + + def __init__(self): + self.students = [] + + def load_from_list(self, names): + self.students = names + + def get_random_student(self): + if not self.students: + return None + return random.choice(self.students) + diff --git a/project/app/views.py b/project/app/views.py new file mode 100644 index 0000000..e69de29