Given two lists:
a = [[1,2],[3,4]] b = [[1,2],[3,4]]
How would I write compare such that:
compare
compare(a,b) => t
Simple:
def compare(a, b): return a == b
Another way is using lambda to create an anonymous function:
lambda
compare = lambda a, b: a == b