(Solved) : Implement Function Correctly Simple Break Continue Statement Enumerate Statements Fairly S Q43909699 . . .


we have to implement this function correctly andsimple (no break, continue statement or no enumerate statements..fairly simple)
thanks
function wants you to implement its body.. they havegiven precondition, parameters and examples.. we need to write thebody of this function as per the description in firstscreenshot

here is the workout class.
def register(self, time_point: datetime, client: str, workout_name: str) -> bool: Add <client> to the Workoutclass with <workout_name> that is being offered at <time_points iff the client has not already been registered in any course (including <workout_name> at <time_points, and the room is not full 332 If the Workoutclass is being offered in more than one room of <time_point, then the client is added to any one of the rooms (1.e. the room chosen does not matter). Return True iff the client was added. Precondition: the Workoutclass with <workout_name> is being offered in some room at <time_point>. >>> ac = Gym( Athletic Centre’) >>> diane = Instructor(1, ‘Diane”) >>> diane.add_certificate(‘Cardio 1’) True 9 0 Sample est Gym register True >>> ac.add_instructor(diane) True >>> ac.add_room( ‘Dance Studio’, 50) True >>> boot_camp – Workoutclass(“Boot Camp’, [‘Cardio 1′]); >>> ac.add workout_class(boot_camp) True >>> sep_2_2019_12_08 – datetime (2019, 9, 9, 12, @) >>> ac. schedule workout class(sep9_2019_12_00, “Dance Studio, boot_camp.get_name(), diane.get_id)) True >>> ac.register(sep_9_2019_12_00, Philip’, ‘Boot Camp’) True >>>> ac.register(sep_9_2019_12_00, Philip’, ‘Boot Camp’) False # TODO: implement this method! pass chirper (1) Snerali WorkoutClass: init o from datetime import datetime from typing import Dict, List, Textio, Tuple class Workoutclass: “A workout class that can be offered at a gym. === Private Attributes === _name: The name of this workoutClass. _required certificates: The certificates that an instructor must hold to teach this workoutclass. IT 17 _name: str _required_certificates: List[str] def init (self. name. Show transcribed image text def register(self, time_point: datetime, client: str, workout_name: str) -> bool: Add to the Workoutclass with that is being offered at ac = Gym( Athletic Centre’) >>> diane = Instructor(1, ‘Diane”) >>> diane.add_certificate(‘Cardio 1’) True
9 0 Sample est Gym register True >>> ac.add_instructor(diane) True >>> ac.add_room( ‘Dance Studio’, 50) True >>> boot_camp – Workoutclass(“Boot Camp’, [‘Cardio 1′]); >>> ac.add workout_class(boot_camp) True >>> sep_2_2019_12_08 – datetime (2019, 9, 9, 12, @) >>> ac. schedule workout class(sep9_2019_12_00, “Dance Studio, boot_camp.get_name(), diane.get_id)) True >>> ac.register(sep_9_2019_12_00, Philip’, ‘Boot Camp’) True >>>> ac.register(sep_9_2019_12_00, Philip’, ‘Boot Camp’) False # TODO: implement this method! pass chirper (1) Snerali
WorkoutClass: init o from datetime import datetime from typing import Dict, List, Textio, Tuple class Workoutclass: “A workout class that can be offered at a gym. === Private Attributes === _name: The name of this workoutClass. _required certificates: The certificates that an instructor must hold to teach this workoutclass. IT 17 _name: str _required_certificates: List[str] def init (self. name.
Expert Answer
Answer to we have to implement this function correctly and simple (no break, continue statement or no enumerate statements.. fairl…
OR