python nested loops in list comprehension

welcome to shbcf.ru