[Tutor] Re: Tutor Digest, Vol 7, Issue 18

Alan Gauld alan.gauld at blueyonder.co.uk
Mon Sep 6 00:38:43 CEST 2004

> Kent
> PS A question for the other tutors - does this recursive style of user 
> input make you nervous? I don't much like it but I don't know if it is 
> just because it is unfamiliar...my gut feeling is you could get in 
> trouble with it. I guess the OP is one example of how!

I don't like it either. A recursion limit of 100 nseems like a lot but
in fact it wouldn't take a long time to use that up, every single menu
selection will use one extra level.

Loops are definitely the preferred way to do iteration in Python.

Alan G

More information about the Tutor mailing list