a_list = [3.4, False, ['now', 'is', 'the', 'time'], {'soda': 'coke'}, 6] if any(isinstance(x, list) for x in a_list): print('true') else: print('false')