Python for loop - to iterate or not to iterate? : I'm writing a hangman game using Python, based on a specific set of instructions. I specifically need to use a for loop in order to replace all the letters in a word with underscores and in fact I am succeeding in doing so. However I  have one slight issue, I'm getting a new line of underscores printed for every letter in my word. Is there a way to get rid of this? Can someone guide me on what is wrong with my logic? Thanks in advance.

    word = "test"

    def createBlank(word):
        for letter in word:
                blanks = '_' * len(word)
                print(blanks)

My result is as you would assume:

    >>> word
    'test'
    >>> createBlank(word)
    ____ #<- only need this line to be printed.. is it even possible using a for?
    ____
    ____
    ____