a = [1,2,4,5,6]
b = [2,0,7,8,9]
for x in a:       #It will take a numbers one by one and put them equal to x
    for i in b:   #It will take b number one by one and put them equal to i
        if x == i: #It will check if x if equal to i and if they are equal 
            print (True) #It will print True