how to flatten list without using recursion in python

welcome to shbcf.ru