I'm a beginner in python, when I run the script it doesn't say there's an error I need to fix but when it gets to the part of the if statement it doesn't report anything.
import random
username = input("What is your name?")
print("Hello",username)
highestValue = input("What do you want your highest value to be?")
highestValue = int(highestValue)
randomNumber = random.randint(0,highestValue)
print(randomNumber)
guessedNumber = input("Take a guess at my secret number")
if guessedNumber == randomNumber:
print("Congratulations! You guessed my secret number")
inputreturns a string forguessedNumber, and you haven't converted that to anint. Even if you guessed the correct number,16does not equal'16', so yourifstatement would evaluate toFalse. You might want to add anelsestatement so you can tell that at least something is happening when you guess incorrectly.