num_list = [ "a", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", ] # present_list = [Partridge in a Pear Tree, Turtle Doves] present_list = [ "twelve Drummers Drumming", "eleven Pipers Piping", "ten Lords-a-Leaping", "nine Ladies Dancing", "eight Maids-a-Milking", "seven Swans-a-Swimming", "six Geese-a-Laying", "five Gold Rings", "four Calling Birds", "three French Hens", "two Turtle Doves", "a Partridge in a Pear Tree", ] present_list.reverse() def Twelve_days(): present_l = [] i = 1 for phrase in present_list: present_l.insert(0, phrase) # present_l.reverse() present_r = str(present_l).strip("[]").replace("'", "") present_r = present_r[0:-29] + present_r[-27:] # XxX the fuck print( f"On the first day of Christmas my true love gave to me: {present_r}." ) # empty {} error if i == 1: present_l.insert(-1, "andd") i += 1 Twelve_days()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter