俗话说,因为缺了一颗马蹄钉,失去了一整个王国。
给定一个输入列表,生成对应的谚语。例如,给定列表["nail", "shoe", "horse", "rider", "message", "battle", "kingdom"],你要输出这段谚语韵文的完整文本:
For want of a nail the shoe was lost.
For want of a shoe the horse was lost.
For want of a horse the rider was lost.
For want of a rider the message was lost.
For want of a message the battle was lost.
For want of a battle the kingdom was lost.
And all for the want of a nail.
注意,输入列表可能各不相同;你提交的解答应该能够处理任意长度和任意内容的列表。输出文本中没有任何一行应该是固定不变的字符串;所有行都应该根据给定的输入而变化。