Estava procurando uma forma de praticar, já havia feito e refeito de varias formas o jogo da adivinhação do inicio do curso (vou deixar meu último código). Comecei a caçar na internet exercicios, e achei esse site que tem varios exercicios e respostas do iniciante ao avançado e é utilizado para varias outras linguagens.
print("****************************")
print("Welcome to the guessing game")
print("****************************")
secret_number = 50
turn = 1
attempt = int(input(print("type the numbers of attempts allow for each player: ")))
for turn in range(1, attempt + 1):
print("try {} de {}".format(turn, attempt))
guesstimate = int(input(print("type a number between 1 and 100 to try guess the secret number: ")))
print("you type {} as a number of attempts and the {} is the guesstimate number".format(attempt, guesstimate))
lower = guesstimate < 1
bigger = guesstimate > 100
if(lower or bigger):
print("you type {} and this is a number lower or bigger than the limit".format(guesstimate))
continue
correct = guesstimate == secret_number
bigger = guesstimate > secret_number
lower = guesstimate < secret_number
if(correct):
print("You're correct!!!!!")
break
else:
if(bigger):
print("You're wrong, and your attempt was bigger than the secret number")
elif(lower):
print("You're wrong, and your attempt was lower than the secret number")
print("FIM DO JOGO!!!")