I have a list a lists. Each list contains many letters, like so:
doc = [[a,b,c],[d,e,f,g],[h,i,j,k,l,m]]
I am trying to write a function to f