`import random
print("Try to guess the number!")
print()
difficulty = input("Select your difficulty: Easy, Medium, Hard, or Insane:\n").lower #Selecting
your difficulty(how hard the game is)
if difficulty == 'easy':
number = random.randrange(1, 100) #Picks a number between 1 to 100 and assigns it to number
if number > 50:
print("*HINT*: \n The mystery number is greater than 50")
if number > 75:
print("*HINT#2*:\n The mystery number is greater than 75")
else:
print("*HINT#2:\n The mystery number is less than 75")
if number < 50:
print("*HINT*: \n The mystery number is less than 50")
if number < 25:
print("*HINT#2*\n: The mystery number is less than 25")
else:
print("*HINT#2:\n The mystery number is greater than 25") `
For some reason it just exits the code even if the number is less or greater than 50. I am struggling with this please help.