25 lines
995 B
Python
25 lines
995 B
Python
def recite(start_verse, end_verse):
|
|
appendices_list: list[str] = [
|
|
"the house that Jack built.",
|
|
"the malt that lay in",
|
|
"the rat that ate",
|
|
"the cat that killed",
|
|
"the dog that worried",
|
|
"the cow with the crumpled horn that tossed",
|
|
"the maiden all forlorn that milked",
|
|
"the man all tattered and torn that kissed",
|
|
"the priest all shaven and shorn that married",
|
|
"the rooster that crowed in the morn that woke",
|
|
"the farmer sowing his corn that kept",
|
|
"the horse and the hound and the horn that belonged to",
|
|
]
|
|
verses_to_recite: list[str] = []
|
|
for verse_id in range(start_verse - 1, end_verse):
|
|
current_verse: list = ["This is"]
|
|
for part in range(verse_id, -1, -1):
|
|
current_verse.append(appendices_list[part])
|
|
verses_to_recite.append(" ".join(current_verse))
|
|
current_verse.clear()
|
|
print(verses_to_recite)
|
|
return verses_to_recite
|