What module do you need to import in order to use a pseudo-random number in your game?
In your guessing game, you randomly chose a word from your word list. Complete the code to randomly choose an index found in the list. import random count = len(words) wordIndex = _____
Your program has a loop. You want to pass control back to the start of a loop if a certain condition is met. What statement will keep you in the loop but skip the rest of the code in the loop?
How do you check to see if the user entered more than one character? Complete the code.
You compared each letter in the correct word to the letter guessed. Assume the correct word is "cloud." Finish the code to compare the guessed letter to the "u" in "cloud."
In your guessing game, you replaced dashes in blanks when the user guessed a correct letter by using a string slice. Which line of code will replace the character with an index of n with the guessed letter?
Did you find these answers helpful?