I have a list
list1 = [ [2,3,4] ,[5,6,7] ,[1,5,8] ,[2,3,{'key1':12}] ]
From list1 I need to remove the list which has a dictionary element and generate list2 which should be [ [2,3,4] ,[5,6,7] ,[1,5,8] ]
with a for loop I can get the list2 like
for e1 in list1:
condition = 0
for e2 in e1:
if type(e2) is dict:
condition = 1
if not condition:
list2.append(e1)
How can I get the result for list2 with list comprehension?