Bite 80. Check equality of two lists
Login and get codingIn this Bite we compare two
listobjects for equality, a fundamental thing to understand in Python.Complete the
check_equalityfunction returning the variousEnumvalues (representing equality scores) according to the type of equality of the lists:
- return
SAME_REFERENCEif both lists reference the same object,- return
SAME_ORDEREDif they have the same content and order,- return
SAME_UNORDEREDif they have the same content unordered,- return
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.Note that
==andisare not the same in Python!Have fun and keep calm and code in Python!
458 out of 469 users completed this Bite.
Will you be the 459th person to crack this Bite?
Resolution time: ~38 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.57 on a 1-10 difficulty scale.
» You can do it! 😌