def list(list1,list2):
           for x in list1:
                      for y in list2:
                                 #numbers chack next commend
                                 #print (x,y)
                                 if x==y:
                                            print('trow')
                                 else : print('false')
                                            


list_a=['123','231','222',]
list_b=['111','123','122',]

print (list(list_a,list_b))


