In your guessing game, you replaced dashes in blanks when the user guessed a correct letter by using a string slice. Complete the code to replace the character with an index of n with the guessed letter? blanks = blanks[:n] + letter + _____
Your program has a loop.You want to exit the loop completely if the user guesses the correct word.Which statement leaves the loop?
Your program has a loop where a user guesses a letter. Your program compares the guess to each letter in the word. Finish the code.
0:correct[n]
How do you check to see if the user entered more than one character? Complete the code. letter = input("Enter a letter: ") if _____ > 1: print("\nPlease guess a single letter.\n")
Did you find these answers helpful?