def flatten(array):
	"""
		Returns a list o flatten elements of every inner lists (or tuples)
		****RECURSIVE****
	"""
	res = []
	for el in array:
		if isinstance(el, (list, tuple)):
			res.extend(flatten(el))
			continue
		res.append(el)
	return res

		Returns a list o flatten elements of every inner lists (or tuples)
		****RECURSIVE****
	
recipes/Python/577932_Flatten_ArrayTuple/recipe-577932.py