Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!