I have a list of lists:
a = [[1, 3, 4], [2, 5, 7]]
I want the output in the following format:
1 3 4 2 5 7
a = [[1, 3, 4], [2, 5, 7]] for i in a: for j in i: print(j, end = ' ') print('',sep='\n')
output: