Ask coding questions
I'm not sure why this is giving me this error. It appears that it should work but doesn't. Here's the link https://repl.it/@JAGMAN248/Roll-the-Dice. Thanks for your help!
Yeah it works now.
On line 66, you forgot to end it with a second ). Tip: If you can't find the issue with the current line in syntax errors, look at the couple of lines before it.
Does it work now?
you need an else statement for the previous if/elif chain. I'd also recommend doing gold += bet * 2 instead of gold = gold + bet * 2
gold += bet * 2
gold = gold + bet * 2
@theangryepicbanana that wasn't the reason for the syntax error though
Also later on you have some lines like dialog("You won 5x your bet!") :which is wrong (shouldn't have colon)
Ah, thanks so much!
on the line before you need to close the parentheses
@ArchieMaclean dialog("The roll was " + str(roll))you missed the final closing parenthesis