Im kind of stuck with the number guess project on python


#1

hello
im kind of stuck with the number guess project on python
it doesnt work like it should , any ideas why ? thanks

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

"""dive guess"""
from random import randint
from time import sleep

def get_user_guess () :
  guess = int(raw_input("what's your guess ? :"))
  return guess


def rool_dices(number_of_slides) :
  first_roll = randint(1, number_of_slides)
  second_roll = randint(1, number_of_slides)
  max_val = number_of_slides*2
  print " the maximum possible value is : %d" % max_val
  
  guess =  get_user_guess() 
  if guess > max_val :
      print "your value is too big"
      
  roll_dice(6)

#2

what doesn’t work like it should?

check the spelling of your function name. Also, why is the function call nested in the function?


#3

Comparing what you expect and what you observe is how you answer that question, ask yourself which part of the code was supposed to be doing that differently


#4

well, your function roll_dice is spelled wrong.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.