input: Write a python function to compare two lists and check if they are equal in both length and elements.
  assert compare_lists([1, 2, 3], [1, 2, 3]) == True
  assert compare_lists([1, 2, 3], [1, 2, 4]) == False
  assert compare_lists([1, 2, 3], [1, 2]) == False
  assert compare_lists([], []) == True
output: def compare_lists(list1, list2):
      return list1 == list2