-4
numero_sorte = 3
n_tentativas = 4
for rodada  in  range(1,n_tentativas):
  tentativa_2 = input ('qual o numero secreto? ')
  tentativa_2= int (tentativa_2)
  def jogo_adivinha(chute):
    if numero_sorte == chute:
      print('parabens vc acertou')
    elif numero_sorte < chute:
      print('o numero secreto e menor que isso')      
    elif numero_sorte > chute :
      print('o numero secreto e maior que isso')
that’s my code
Know the difference between a loop of repetition and a subroutine?
– Augusto Vasques