Class AssignmentResult
An object that represents the result of an assignment.
__init__(self, id:int, assignment: Assignment, grade: float): \"\"\" This will contain the ID of the student, the assignment that the student worked on and the grade the student received on the assignment. :param id: The ID of the student that created this Assignment result :param assignment: The Assignment that the student worked on. :param grade: A number between 0-1 representing the numerical grade the student received \"\"\"
id(self) -> int: \"\"\" Returns the ID of the student as specified in the constructor. :return: The student's ID \"\"\"
grade(self) -> float: \"\"\" Returns the grade as specified in the constructor. :return: The grade the student received for this assignment \"\"\"
assignment(self) -> Assignment: \"\"\" Returns the assignment as specified in the constructor. :return: The assignment that the student worked on to create this result \"\"\"
This problem should be executed with Python.