def get_input(lives, display, guessed_text):
    """
    Get user input at every round
    :param lives: (int) the lives of player
    :param display: (string) the guessed answer to show user
    :param guessed_text: (string) the guessed character
    :return: (string) the character input from player
    """
    print('The word looks like: ' + display)
    print('You have ' + str(lives) + ' guesses left.')
    print('You have guessed: ' + guessed_text)
    while True:
        guess_text = input('Your guess: ')
        if len(guess_text) == 1 and guess_text.isalpha():
            return guess_text.upper()
        else:
            print('Illegal format.')