From 8a99ad5d654f861fcbe46775a554ce151fc3eb8b Mon Sep 17 00:00:00 2001 From: Rebecca Hankey Date: Wed, 14 May 2025 15:42:06 -0400 Subject: [PATCH] I decided to go with my gut and add a roster to complete the model app. I added a list of "students" then was able to conceptualize some more of the elements. Once I had thse student in the list, I realized that as they get called on and eliminated from the list, then the next day the list would have to be ready to start fresh. It is a new day, so we need a blank cold call sheet. So, I addd part of that to the model and the view. Next steps are to finish refining the process and add a couple more things. I have been struggling to keep my thoughts in a row when I pause my work. I find that when I am in the zone that I am thinking about issues I see and noting them, but later when I go back to my notes, I am a little confused at my own work. So, I am thinking in terms of teaching that there might be value in teaching students how to take notes and how to plan in a way that you can follow your own thinking. This could also be scaffolded. Or you could use the first few units to teach different note-takingmethods. Then as the year progresses, students could choose the format they prefer and create a portfolio. --- project/app/models.py | 4 ++++ project/app/views.py | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/project/app/models.py b/project/app/models.py index e754f3c..4237a9e 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -47,3 +47,7 @@ class Roster: return True return False """Remove student(s).""" + + def reset_roster(self): + """Reset students to their original list (like at the start of the day).""" + self.students = self.original_students[:] diff --git a/project/app/views.py b/project/app/views.py index d617783..c457f66 100644 --- a/project/app/views.py +++ b/project/app/views.py @@ -9,7 +9,38 @@ print(f"{roster.count_students()} students remaining on Roster.") student = roster.pick_random_stuent() if student: - print(f"[{student}, you were selected!!") + print(f"[{student}, you were selected!!]") else: print("Name not/no longer on current roster.") + +roster = Roster() + +roster.add_student("Bob") +roster.add_student("Linda") +roster.add_student("Tina") +roster.add_student("Gene") +roster.add_student("Louis") +roster.add_student("Gayle, Checkin No Cold Call") +roster.add_student("Mort") +roster.add_student("Teddy") + +removed = roster.remove_student() +if removed: + print(f"[{student} was removed from Roster.]") +else: + print(f"[{student} not on roster.]") + +roster.load_from_list(["Ava", "Eli", "Noah", "Luna"]) + +print("Full class:", roster.students) + +roster.remove_student("Bob") +roster.remove_student("Linda") +print("Remaining today:", roster.students) + +"""Reset at end of day""" +roster.reset_roster() +print("Next day reset:", roster.students) + +