We use Python 3.6

go back Level: Beginner (img: BG / score: 2) level Bite 80. Check equality of two lists

31 out of 32 users completed this Bite ...
Will you be Pythonista #32 to crack this Bite?
Average Bite difficulty 1-10 rating: 2.0
» You can do it! 😌

In this Bite we compare two list objects for equality, a fundamental thing to understand in Python.

Complete the check_equality function returning the various Enum values (representing equality scores) according to the type of equality of the lists:

  1. return SAME_REFERENCE if both lists reference the same object,
  2. return SAME_ORDERED if they have the same content and order,
  3. return SAME_UNORDERED if they have the same content unordered,
  4. return SAME_UNORDERED_DEDUPED if they have the same unordered content.

Have fun and keep calm and code in Python!

Github login button