Comparing Lists
Perform a simple comparison between the given lists. Return true if both the lists carry the same elements and elements order. Otherwise false.
Sample Code:
def compList(l1,l2):
# Enter your logic here...
Examples:
Input: [1,2,3, {key:value}],[1,2,3,{key:value}]
Output: True
Explanation: Both have the same elements and elements order.
Input: [1,2,3],[1,2,'3']
Output: False
Explanation: '3' is not equivalent to 3 due to different data types.