Run
input = [ ['a', 'b', 'c'], ['d', 'e', 'f'], ] for inner in input: for element in inner: print(element)
Output