Tahnks a lot. Michalels sequence works flawlessly. And it is really elegant :)
John Machin wrote: >A few quick silly questions: >Have you read the Python tutorial? >Do you read this newsgroup (other than answers to your own questions)? >Could you have done this yourself in a language other than Python? Of course I have read (or still reading) Python tuorial and newsgroup (No kidding:). And I am able to done this in VBA for example. But I am not able to write such a elegant construction. Tanks a lot. -- http://mail.python.org/mailman/listinfo/python-list