Number guess project python 2

from random import randint
from time import sleep

def usrguess():
  guess = int(raw_input("What's your guess? "))
  return guess

def roll_dice(sides):
  first = randint(1,sides)
  second = randint(1,sides)
  max_val = sides*2
  print "the maximum valvue possible is %d" % max_val
  guess = usrguess()
  if guess > max_val:
    print"that's not possible."
    sleep(1)
    print("Exiting...")
  else:
    print "Rolling..."
    sleep(2)
    print"First roll is: %d" % first
    sleep(0.5)
    print"Second roll is: %d" % second
    total_roll = first + second
    print "Result\n %d" %total_roll 
  **if guess == total_roll:**
**      print"YOU WIN!"**
**  else: **
**      "try again lol"**
    
    
    
    
#body
print"Welcome to number guess!"
sides = int(raw_input("Enter number of sides:"))
roll_dice(sides)

i’m checking if player guess is equal to total_roll
i am not getting the print, can someone help me?

you don’t print your else case, which is the most likely case
the difference

print "try again lol"

vs

"try again lol"
1 Like

oh my god

thank you haha