> What's wrong with the following ? > > def morris(seed,n) : > """...""" > for k in xrange(n-1) : > seed=length_encode(seed) > return seed
Nothing's wrong with it. I happen to think the recursive version is more elegant, but that's just me ;-) -- http://mail.python.org/mailman/listinfo/python-list