Login and get coding
In this Bite we compare two
listobjects for equality, a fundamental thing to understand in Python.
check_equalityfunction returning the various
Enumvalues (representing equality scores) according to the type of equality of the lists:
SAME_REFERENCEif both lists reference the same object,
SAME_ORDEREDif they have the same content and order,
SAME_UNORDEREDif they have the same content unordered,
SAME_UNORDERED_DEDUPEDif they have the same unordered content and reduced to unique items,
- and finally return
NO_EQUALITYif none of the previous cases match.
isare not the same in Python!
Have fun and keep calm and code in Python!
441 out of 452 users completed this Bite.
Will you be Pythonista #442 to crack this Bite?
Resolution time: ~39 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.57 on a 1-10 difficulty scale.
» You can do it! 😌