By Jove I think I've got it.
initials = ['b', 'c', 'd']
medials = ['a', 'i', 'u']
finals = [' ', 'n', 's']
out_file = open("syllables.txt","w")
for na in initials:
for nb in medials:
for nc in finals:
x = na + nb + nc
out_file.write(x+"\n")
out_file.close()
print "Finished. It was a pleasure to serve you."
Now to figure out how to randomly shuffle the list before writing it to
the file.


|