First of all here is the link to my project: https://www.codecademy.com/courses/learn-python/projects/number-guess?action=resume_content_item
Second of all it is the #17 which is causing me trouble.
Thirdly, here is a snapshot of my code:
Number Guess: A game that gets you guessing the outcome of a dice roll. Who wins? AI or you? Let’s find out!
from random import randint
from time import sleep
guess = int(raw_input('Guess a number: '))
first_roll = randint(1, number_of_sides)
second_roll = randint(1, number_of_sides)
max_val = number_of_slides * 2
print “The maximum possible value is %d” % max_val
guess = get_user_guess()
if guess > max_val:
return “No guessing higher than the maximum value!!!”
For some reason - "roll_dice(6), although it is not indented, it is causing me that error and I am unsure how to fix this issue.
If you have any comments on how to resolve this rather annoying issue (of all the things that I could struggle with…), I would be most thankful! Much love bros.