-1
I’m doing a hangman game in Python, the user writes the word and then the tip, another user will play the game and can choose between play or ask for a hint but when returning the variable tip it does not print and jumps to the next question, how can I recover the variable inside the while
while dicas > 0:
menu = input("Digite 1 para Jogar ou 2 para Solicitar dica: ")
if(menu == 1):
    letra = str.lower(input("Digite uma letra: "))
    for i in range(0, len(palavra)):
        if letra == palavra[i]:
            letras_descobertas[i] = letra
            errou = False
    print(letras_descobertas)
    for x in range(0, len(letras_descobertas)):
        if letras_descobertas[x] == "*":
            acertou = False
    if errou == True:
        vida = vida -1
        print("Você errou! Você possui ", vida, "vidas.")
        if vida <= 0:
            print("Suas vidas acabaram!")
           
if(menu == 2):
    if(dica1 == str):
        print(dica1)
        dica1 = 0
    elif(dica2 == str):
        print(dica2)
        dica2 = 0
    elif(dica3 == str):
        print(dica3)
        dica3 = 0
dicas = dicas -1
full code here (https://pastebin.com/print/WSs4dLGL)