Question: The code does not work and returns: AttributeError Traceback ( most recent call last ) in ( ) 1 # Tests 5 points. 2 -

The code does not work and returns:
AttributeError Traceback (most recent call last)
in ()
1 # Tests 5 points.
2
---->3 assert i != j
4 assert Interval(5,7)== Interval(5,7)
in interval_equality(self, other)
2
3 def interval_equality(self, other):
---->4 if self.x1== other.x1 and self.x2== other.x2:
5 return True
6 else:
AttributeError: 'Interval' object has no attribute 'x2'
The code does not work and returns:

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 Programming Questions!