Re: [Tutor] Python Beginners

2011-06-08 Thread Steven D'Aprano
Dave Angel wrote: On 01/-10/-28163 02:59 PM, Vincent Balmori wrote: Hello. Right now I am learning the python language through Python Programming for the Absolute Beginner 3rd Edition. I am having trouble with one question in Ch. 4 #3, which says "Improve 'WordJumble so that each word is paired

Re: [Tutor] Python Beginners

2011-06-08 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Vincent Balmori wrote: Hello. Right now I am learning the python language through Python Programming for the Absolute Beginner 3rd Edition. I am having trouble with one question in Ch. 4 #3, which says "Improve 'WordJumble so that each word is paired with a hint. The pl

Re: [Tutor] Python Beginners

2011-06-08 Thread Steven D'Aprano
Vincent Balmori wrote: Hello. Right now I am learning the python language through Python Programming for the Absolute Beginner 3rd Edition. I am having trouble with one question in Ch. 4 #3, which says "Improve 'WordJumble so that each word is paired with a hint. The player should be able to se

Re: [Tutor] Python Beginners

2011-06-08 Thread Válas Péter
Since you have jumbled the word in the same variable, you have a very small chance (1:len(word)! which is 1:120 for a five-letter word) to have any of the given words in the variable "word" whan your program reaches the yellow part. You shold try to use "correct" instead of "word" in the yellow if.

[Tutor] Python Beginners

2011-06-08 Thread Vincent Balmori
Hello. Right now I am learning the python language through Python Programming for the Absolute Beginner 3rd Edition. I am having trouble with one question in Ch. 4 #3, which says "Improve 'WordJumble so that each word is paired with a hint. The player should be able to see the hint if he or she