arr=[[78, 56, 232, 12, 11, 43], 11]
from collections.abc import Iterable
def iterator(obj):
if isinstance(obj, Iterable):
for v in obj:
yield from iterator(v)
else:
yield obj
b = [[78, 56, 232, 12, 11, 43], 11]
a = list(iterator(b))
print(a)
[78, 56, 232, 12, 11, 43, 11]