Question: need python code for this the class is Course def add_assignment(self, assignment: (str, int)) > bool: ' Returns the success status of adding assignment to
need python code for this

the class is Course
def add_assignment(self, assignment: (str, int)) > bool: "' "Returns the success status of adding assignment to the list of this course's assignments. assignment is represented by its title and weightage, e.g. ('HW1', 10). It can be added to the list of assignments if adding the weightage does not cause the total weightage to exceed 100 and the list does not already contain an assignment with the same title. otherwise it cannot and adding fails. Parameters: - self: mandatory reference to this object - assignment: a tuple containing the assignment name and weightage Returns: True if adding assignment succeeds, False otherwise. w" pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
