I am stuck in Dice Game (https://www.codecademy.com/courses/learn-python/projects/number-guess). I check my code with the tutorial video line by line. However, I still cannot find where does my code go wrong.
from random import randint from time import sleep def get_user_guess(): guess = int(raw_input("Guess a number: ")) return 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 "The maximum possible value is: %d" % max_val guess = get_user_guess() if guess > max_val: print "No guessing higher than the maximum possible value!" roll_dice(6)
Thanks in advance,