python efficiently compare two lists

welcome to shbcf.ru