I am new to python. I need to iterate over words one by one from a list. But i can only iterate through each letters in each words vertically.
l = ['abcd efgh ijkl']
for i in l:
for j in i:
print(j)
Output:
a
b
c
d
e
f
g
h
i
j
k
l
Expected output:
abcd
efgh
ijkl