Help:=proc(): print(` Followers(w,k,n)`):end: read `ENGLISH.txt`: #Followers(w,k,n): inputs a word w outputs all the words of length n that start with the last k letters of w. Try: #Followers([d,o,r,o,n],2,5); Followers:=proc(w,k,n) local S,G,w1,v: if k>n then RETURN(FAIL): fi: w1:=[op(nops(w)-k+1..nops(w),w)]: S:=ENG()[n]: G:={}: for v in S do if [op(1..k,v)]=w1 then G:=G union {v}: fi: od: G: end: