What is the wrong with my code:
l = ['a', ['bb', ['ccc', 'ddd'], 'ee', 'ff'], 'g', 'h']
for i in l:
for j in i:
print(j)`
The output is:
a
bb
['ccc', 'ddd']
ee
ff
g
h.
But I want this output:
a
bb
ccc ddd
ee
ff
g
h.
What changes should be made?