Why first the first loop generates expected results, but the second, although is the same loop generates empty list?
y = ["I am ok", "We are there", "Contraction: I've I'm won't"]
y1 = [(word for word in text.split(" ")) for text in y]
print("First:\n")
for i in y1:
print(list(i))
print("\nSecond:\n")
for i in y1:
print(list(i))
Results:
First:
['I', 'am', 'ok']
['We', 'are', 'there']
['Contraction:', "I've", "I'm", "won't"]
Second:
[]
[]
[]