Hey there! I'm a novice trying to write program (using the turtle mod) that makes letters from a random word disappear (start to finish) as I type them. I wrote it out in my terminal using the print function and I have it working:
BUT I want this to work IN a turtle.Screen, not just in the terminal. How do I get the text to translate and react the same way, but in the python window? I am currently just using the pen.write function to make the text appear. Any help would be VERY MUCH APPRECIATED! Thank you!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import random word_list = [ "thing" , "crazy" , "house" , "proud" , "train" ] def word_ch_5(): x = random.choice(word_list) print (x) while len (x) > = 0 : index = 0 if x[index] = = input (): x = x[index + 1 : len (x)] print (x) word_ch_5() |