Untitled
unknown
plain_text
3 years ago
742 B
12
Indexable
items = ["a partridge in a pear tree", "turtle doves, and", "french hens", "calling birds", "GOOOLLLLDDDD RINGSSSSS!!!", "geese-a-laying", "swans a swimming", "maids-a-milking", "ladies dancing", "lords-a-leaping", "pipers piping", "drummers drumming"]
days = ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth", "eleventh", "twelvth"]
for dayPosition in range (0, len(days)):
print("On the", days[dayPosition], "day of Christmas, my true love gave to me:")
for itemPosition in range(dayPosition + 1, 0, -1):
if itemPosition == 1:
print("\t", items[itemPosition - 1])
else:
print("\t", itemPosition, items[itemPosition - 1])
print()
Editor is loading...