Showing invalid syntax , need to check problem with the code


#1



https://www.codecademy.com/en/courses/python-ext/projects/number-guess

syntax error: invalid syntax
problem with max_val

### number guessing game 

from random import randint
from time import sleep

def get_user_guess():
  user_guess = int(raw_input("Type your guess: "))
  return user_guess

def roll_dice(number_of_sides):
  first_roll = randint(1, number_of_sides)
second_roll = (randint(1, number_of_sides)
 max_val = number_of_sides * 2
  print "This the maximum value possible for the dice " + str(max_val)
  time.sleep(1)
	get_user_guess()
	user_guess = get_user_guess
  
	if user_guess > max_val:
  	print "Your value is greater the maximum value"
  	return
  else:
    print "Rolling..."
    time.sleep(2)
    print "The first value is " + first_roll
    print "The value of the secound role " + second_roll
    total_roll = first_roll + second_roll
    print "Result..."
    time.sleep(1)
    print total_roll
    if user_guess > total_roll:
      print "You won !!!"
      return
    else:
      print "You lost buddy!"
     	return
    
roll_dice()


#2

Indentation problem. Be sure all code inside a block is indented 4 spaces (not tab).


#3

i corrected the indentation still the same problem


#4

Remove the leading (.


#5

got it working now thanks.


#6