Segue o código:
# Simple guessing game: introduction to Python and PyCharm
print("*********************")
print("Let's start our game!")
print("*********************")
print("Try to guess what the secret number is. It's between 1 and 99")
secret_number = 42
kick = input("Enter your number: ")
attempt = int(kick)
# The input receives the value as a string.
# Now, it's necessary to pass from 'str' to 'int'.
# The variable 'attempt' is created as 'int' to compare with the variable 'secret_number', which is the same type.
print("You typed: ", attempt)
you_hit = attempt == secret_number
bigger_hit = attempt > secret_number
lower_hit = attempt < secret_number
if you_hit:
print("You got it right, " + kick + " is the secret number!")
else:
if bigger_hit:
print("You failed, your number was bigger than secret number!")
elif lower_hit:
print("You failed, your number was lower than secret number!")