Question: we have to implement this function correctly and simple (no break, continue statement or no enumerate statements.. fairly simple) thanks function wants you to implement
we have to implement this function correctly and simple (no break, continue statement or no enumerate statements.. fairly simple)
thanks
function wants you to implement its body.. they have given precondition, parameters and examples.. we need to write the body of this function as per the description in first screenshot
here is the workout class.
def register(self, time_point: datetime, client: str, workout_name: str) -> bool: Add to the Workoutclass with that is being offered at at is being offered in some room 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