Question: Python 3 Write a recursive function called checkLists that accepts two integer lists as parameters. The function should return True if both of the lists
Python 3
Write a recursive function called "checkLists" that accepts two integer lists as parameters. The function should return True if both of the lists are exactly the same and returns False otherwise. Your function may not use any built-in library functions or the "==" operator to compare equality of the two lists - you can only use the "==" operator to compare two individual integers. Your function must also not use any loops.
>>> checkLists( [4,2,8], [4,2,8] ) >>> True # the lists are equal >>> checkLists( [3,2,9], [3,2,1] ) >>> False # the lists are not equal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
