def common_element(list1, list2): result = False for x in list1: for y in list2: if x == y: result = True return result