Mohammed Altaj enlightened us with: > Thanks a lot for your valuable answer, i like the way you code , but > i would like to use my own,
You don't learn to code properly if you always stick to your own stuff... > so if it is possible for you and if you have time, please could you > fix my code, so that i can do what i want. Learn from the answers you've been given. Read the documentation. Then you can incorporate them into your own program. You won't learn anything of you don't challenge yourself! Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? Frank Zappa -- http://mail.python.org/mailman/listinfo/python-list