1 2 3 4 5 6 7
def common_element(list1, list2): result = False for x in list1: for y in list2: if x == y: result = True return result