We can also overload the comparison operators within Python. i.e greater than, less than, equal to, etc.
The example above overloads the comparison operators to compare the total price of the items between the two carts. Try changing the ==
in the last line to <
or >
to see other the results.