Hi guys!
This is my first post so go gentle. I'm just getting into Python programming 
and am having an issue understanding the Word Jumble Game.
import random
WORDS = ('python','jumble','easy','difficult','lower','high')word = 
random.choice(WORDS)correct = wordjumble = ""
while word:    position = random.randrange(len(word))    jumble += 
word[position]    word = word[:position] + word[(position+1):]  
======
I cannot understand what it is trying to do in the while loop.If the word was 
python and position lets say was 3 then jumble would = python(3). I cannot 
understand what the next line does! Please help!
Thanks in advance!

                                          
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to