flatten

flatten(l, ltypes=(<class 'list'>, <class 'tuple'>))[source]