Tiger12506 wrote: > Try regular expressions in the re module. This should make this code below > much much simpler. Downside is you have to learn a slightly different > syntax. Upside is - regular expressions are very powerful. >
Of course I know and use reg. exps., the point of the function is not to validate input but to force the proper input. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor