On Sep 2, 8:20 am, LeeRisq <leer... at gmail.com> wrote: (snip: code) > Traceback: (snip) > TypeError: writelines() argument must be a sequence of strings Well you need to print out "y" and see whats in there. The error is pretty obvious.