from fastcore.all import *Deck the Halls
x = "Deck the halls with boughs of holly"
x'Deck the halls with boughs of holly'L("la")*8(#8) ['la','la','la','la','la','la','la','la']def sing(): return L("Fa", *L("la")*8)sing()(#9) ['Fa','la','la','la','la','la','la','la','la']print("Tis the season to be jolly")Tis the season to be jolly" ".join(sing())'Fa la la la la la la la la'repr("Don we now our gay apparel")"'Don we now our gay apparel'"s = sing()
s(#9) ['Fa','la','la','la','la','la','la','la','la']"".join(s[0:3])'Falala'for i in range(0,3): print("".join(s[i:i+3]))Falala
lalala
lalala"Troll the ancient yuletide carol"'Troll the ancient yuletide carol'L(zip(s[0:5], s[1:5])) + 'la'(#5) [('Fa', 'la'),('la', 'la'),('la', 'la'),('la', 'la'),'la']