Re: [Tutor] Output never stops

2008-08-02 Thread Vivek Sant
Hi David, Simple explanation - you should use if instead of while. A while statement executes whatever is in that block again and again until the condition becomes false. So your code, the way you have it, first checks if the user's input is not -1. If you have typed Lary, it goes on to p

Re: [Tutor] Obtaining various combinations of a given word

2008-07-29 Thread Vivek Sant
Hi Sai krishna, I recently wrote a program that does something similar to what you want. If you are familiar with the game text-twist, I wrote up a "solver" that will untwist any word by generating all possible combinations and then checking against a dictionary. To be honest, I had a lit