As shown in the topic, I don’t know if it happens to others as well that the solution code only allows 2 guesses, which are the first and third ones. In the console, the result showed:
Your guess: 3
Your guess: Your guess: 2
After entering the first guess 3, without showing 1) “You lose.” as the feedback for the first guess and 2) giving users the second guess as it should, the console print “Your guess: Your guess:” and ask for the third guess raw input, but the feedback of the third guess was shown accordingly.