Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python Now write a function called check_all that will take in a list of OfficeHour objects, and will call the check method on each
in python
Now write a function called check_all that will take in a list of OfficeHour objects, and will call the check method on each one, using a loop to loop across each element in the input list.
Call this function on your all_office_hours list to make sure that it works as expected.
You should see that running this function prints out a string of information for each object, that looks like:
Sam's office hours are on Mon at 11:00 at Zoom. Shivani's office hours are on Mon at 12:00 at Zoom. Ethan's office hours are on Mon at 3:00 at CSB 114. Holly's office hours are on Tues at 10:00 at Mandeville Coffee Cart. Suzy's office hours are on Tues at 3:00 at CSB 114. Prof's office hours are on Wed at 9:30 at CSB Courtyard. Matthew's office hours are on Wed at 1:00 at Zoom. Donovan & Andrina's office hours are on Thurs at 10:00 at Zoom. Andrew's office hours are on Thurs at 2:00 at Zoom.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started