Guess the Word Game: Guesses For Secret Word Aren't Being Accepted
<p>I'm working in Python 3.x and am fairly new, so I hope what I am asking makes sense. I am supposed to be focusing on for loops and strings for this word-guessing game.
Here's the (jumbled/lengthy/cluttered) code I have so far:</p>

<pre><code>import sys
import random

def Main():
    PlayAgain = "y"
    print("COP 1000 Project 4 - Courtney Kasonic - Guess the Word Game")
    print("I'm thinking of a word; can you guess what it is?")
    while PlayAgain == "y":
        Words = "apple alphabet boomarang cat catharsis define decide elephant fish goat horizon igloo jackelope ketchup loop limousine monkey night octopus potato quick rebel separate test underway violin world yellow zebra".split()
        SecretWord = random.choice(Words)
        MissedLetters = ""
        CorrectLetters = ""
        ChosenWord = GetWord(Words)
        Guess = FiveLetters(CorrectLetters+MissedLetters)
        for Guess in ChosenWord:
            CorrectLetters = CorrectLetters + Guess
        ShowWord(CorrectLetters, ChosenWord)
        for i in ChosenWord:
            CLetters = ""
            if Guess in ChosenWord:
                Blanks = "_" * len(SecretWord)
                for i in range(len(SecretWord)):
                    if SecretWord[i] in CLetters:
                        Blanks = Blanks[i] + SecretWord[i]
                        print(Blanks)
                        print(CLetters)

def GetWord(List):
    SecretWord = random.choice(List)
    return(SecretWord)

**def FiveLetters(LettersGuessed):
    a = 2
    if a &gt; 1:
        print("Enter five letters to check: ",end="")
        Guess = input()
        if len(Guess) != 5:
            print("Please enter five letters.")
        elif Guess in LettersGuessed:
            print("You already guessed that letter.")
        elif Guess not in "abcdefghijklmnopqrstuvwxyz":
            print("Please enter a letter.")
        else:
            return(Guess)**

def ShowWord(CLetters, SecretWord):
    print("\nHere is the word showing the letters that you guessed:\n")
    CLetters = ""
    Blanks = "_" * len(SecretWord)
    for i in range(len(SecretWord)):
        if SecretWord[i] in CLetters:
            Blanks = Blanks[i] + SecretWord[i]
            print(Blanks)
            print(CLetters)
        return(Blanks, SecretWord, CLetters)

def CheckLetters(Letters):
    Letters = "a b c d e f g h i j k l m n o p q r s t u v w x y z".split()
    for Letters in Word:
        print(Letters)
    return(Letters)

Main()
</code></pre>

<p>The bolded area is where I am having problems. Only five letters can be entered to "check" to see if they are in the secret word. It will only accept input like "abcde". It will not accept input like "aaaaa" or "muihi" i.e. it won't accept guesses that are not in order or have more than one of the same letter.</p>

<hr>

<p>I am also having trouble with the underscores. Not sure if the code I have for it up there is correct or not. The letters that are guessed correctly will not replace the appropriate underscore.</p>

<p>Ex: Secret Word = dog. If I guess the letters "mopfe" (though I can't because of issue above) then it will print out "_ _ _" without the "o".</p>
