test1 = [{'a':2},[2]] if {'a':2} in test1: print(True) else: print(False)