Two generator functions work one after the other on a shopping list.
def parts(text):
for part in text.split(";"):
yield part.strip()
def numbered(items):
n = 0
for item in items:
if item:
n += 1
yield str(n) + "." + item
print(list(numbered(parts("milk; ;eggs;bread "))))
What does the program print?