If you don't have duplicates in either lists you can use a set:
if listA==listBlistA == listB \
or listA and listB \
and len(listA) == len(listB) \
and not set(listA).symmetric_difference(listB):
# lists have the same elements
else:
# there are differences
If you do allow duplicates, then yo can use Counter from collections (which would also work if you don't have duplicates)
from collections import Counter
if listA==listBlistA == listB \
or listA and listB \
and len(listA) == len(listB) \
and Counter(listA)==Counter(listB):
# lists have the same elements
else:
# there are differences