python case insensitive word lists comparison

commonwordsinlist1=[i for i in list1 if i.upper() in map(str.upper,list2)]

Advertisements