def play(word):
    
    print(draw_hangman(tries))
    print(' '.join([i for i in wordcounts]))
    print(word)  
    print("\n")
    while not guesses and tries > 0:
        guess = input("Guess a letter or word\n> ").upper()
        if len(guess) == 1 and guess.isalpha():
            if guess in guessed_letters:
                print("You already guessed the letter", guess)
            else:
                print("Nice!!", guess, "is in the word!!")
                guessed_letters.append(guess)
                word_as_list = list(wordcounts)
                var = [i for i, letter in enumerate(word) if letter == guess]
                for index in var:
              
Im doing a hangman project but the characters that it print out doesn't stick above the underscore and I also want to space them out for each character.
 
     
    