Juan Shen wrote: > Maarten, > First of all, welcome to tutor at python.org > I've done a little modification on Kent's code to make it more > sensible. Please try it. > Thx, And how nice it is to learn Python from other people's problems and again other people's solutions :) Maarten