So, I have to make a dice rolling sim. for my class project. I had it working until I had to make it loop. There is an invalid syntax with the closing quotation marks.
roll_another ("Yes or no? If yes,4,6,or8?"):
Because I am fairly new, I don't know many reasons why this could be happening.
I hope this doesn't sound stupid.

Edited by Kara_2

1 Year
Discussion Span
Last Post by Gribouillis

Invalid syntax is always a very simple error. The only strange thing in your code is the colon at the end of the line. This can happen only when the line starts with a keyword such as if, elif, else, for, while, def, class, try, except, finally, with, lambda.

What is the beginning of the line ?

Edited by Gribouillis

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.