← Back to challenges

Count Number of Identical Lists

PythonHardalgorithmsarrays

Instructions

Create a function that takes four lists as arguments and returns a count of the total number of identical lists.

Examples

count_identical_lists([0, 0, 0], [0, 1, 2], [0, 0, 0], [2, 1, 0]) ➞ 2

count_identical_lists([0, 1, 0], [0, 1, 2], [0, 2, 0], [2, 1, 0]) ➞ 0

count_identical_lists([0, 1, 2], [0, 1, 2], [0, 1, 2], [2, 1, 0]) ➞ 3
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.