# match_up Given lists nums1 and nums2 of the same length, for every element in nums1, consider the corresponding element in nums2 (at the same index). Return the count of the number of times that the two elements differ by 2 or less, but are not equal. This exercise was taken from [codingbat.com](https://codingbat.com/prob/p136254) and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java. ### Test 1 **Input:** ``` [1, 2, 3] [2, 3, 10] ``` **Output:** ``` 2 ``` ### Test 2 **Input:** ``` [1, 2, 3] [2, 3, 5] ``` **Output:** ``` 3 ``` ### Test 3 **Input:** ``` [1, 2, 3] [2, 3, 3] ``` **Output:** ``` 2 ``` ### Test 4 **Input:** ``` [5, 3] [5, 5] ``` **Output:** ``` 1 ``` ### Test 5 **Input:** ``` [5, 3] [4, 4] ``` **Output:** ``` 2 ``` ### Test 6 **Input:** ``` [5, 3] [3, 3] ``` **Output:** ``` 1 ``` ### Test 7 **Input:** ``` [5, 3] [2, 2] ``` **Output:** ``` 1 ``` ### Test 8 **Input:** ``` [5, 3] [1, 1] ``` **Output:** ``` 1 ``` ### Test 9 **Input:** ``` [5, 3] [0, 0] ``` **Output:** ``` 0 ``` ### Test 10 **Input:** ``` [4] [4] ``` **Output:** ``` 0 ``` ### Test 11 **Input:** ``` [4] [5] ``` **Output:** ``` 1 ```