160123 Doubt related to Quiz Operator Overloading

python certification program >> quiz 3 OOPS Operator Overloading >> Q2.
[I can’t upload the screenshot]

The answer given as all correct
Option 2 and 4 are wrong as not __less__ but __lt__ is associated with operator ‘<’
Option 1 is wrong as __lt__ is overloaded incorrectly, as it gives false while true is expected.

So only answer 3 should be correct

1 Like


Will check it and correct it accordingly.

1 Like