file teks ke generator kata

# First, line is created for every line in page. Then, word is created for every word in
# line.split()

page_words = (word  for line in page  for word in line.split())
Lazy Lapwing