Difference Between Two Objects Leetcode Python Examples