On Mon, Apr 6, 2009 at 3:30 AM, AdamC <kab...@gmail.com> wrote: > I'm writing a small cgi application for children to use and I want to > check that the name they enter isn't a swear word.
> #for i in swearlist: # shows swear list OK > # print i; Perhaps the words in swearlist include some whitespace? Try for i in swearlist: print repr(i) and look for leading and trailing spaces, tabs, etc. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor